aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r--gcc/gcse.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c
index 1f0aa95..484eb1a 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -3948,7 +3948,13 @@ cprop_insn (insn, alter_jumps)
&& GET_CODE (NEXT_INSN (insn)) == JUMP_INSN
&& condjump_p (NEXT_INSN (insn))
&& ! simplejump_p (NEXT_INSN (insn)))
- changed |= cprop_cc0_jump (insn, reg_used, src);
+ {
+ if (cprop_cc0_jump (insn, reg_used, src))
+ {
+ changed = 1;
+ break;
+ }
+ }
#endif
}
else if (GET_CODE (src) == REG