diff options
Diffstat (limited to 'gcc/loop-unswitch.c')
-rw-r--r-- | gcc/loop-unswitch.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/loop-unswitch.c b/gcc/loop-unswitch.c index 8a71f72..c76f481 100644 --- a/gcc/loop-unswitch.c +++ b/gcc/loop-unswitch.c @@ -172,7 +172,7 @@ unswitch_loops (struct loops *loops) static rtx may_unswitch_on (basic_block bb, struct loop *loop, rtx *cinsn) { - rtx test, at, insn, op[2], stest; + rtx test, at, op[2], stest; struct rtx_iv iv; unsigned i; enum machine_mode mode; @@ -205,8 +205,7 @@ may_unswitch_on (basic_block bb, struct loop *loop, rtx *cinsn) if (CONSTANT_P (op[i])) continue; - insn = iv_get_reaching_def (at, op[i]); - if (!iv_analyze (insn, op[i], &iv)) + if (!iv_analyze (at, op[i], &iv)) return NULL_RTX; if (iv.step != const0_rtx || iv.first_special) |