diff options
Diffstat (limited to 'gcc/auto-inc-dec.c')
-rw-r--r-- | gcc/auto-inc-dec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/auto-inc-dec.c b/gcc/auto-inc-dec.c index db1bd5bba2c..93d97f0cd52 100644 --- a/gcc/auto-inc-dec.c +++ b/gcc/auto-inc-dec.c @@ -152,14 +152,14 @@ enum gen_form static rtx mem_tmp; static enum inc_state -set_inc_state (HOST_WIDE_INT val, int size) +set_inc_state (HOST_WIDE_INT val, poly_int64 size) { if (val == 0) return INC_ZERO; if (val < 0) - return (val == -size) ? INC_NEG_SIZE : INC_NEG_ANY; + return known_eq (val, -size) ? INC_NEG_SIZE : INC_NEG_ANY; else - return (val == size) ? INC_POS_SIZE : INC_POS_ANY; + return known_eq (val, size) ? INC_POS_SIZE : INC_POS_ANY; } /* The DECISION_TABLE that describes what form, if any, the increment |