diff options
Diffstat (limited to 'gcc/loop-invariant.c')
-rw-r--r-- | gcc/loop-invariant.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/loop-invariant.c b/gcc/loop-invariant.c index 3ecf9d6..f703747 100644 --- a/gcc/loop-invariant.c +++ b/gcc/loop-invariant.c @@ -730,6 +730,12 @@ find_invariant_insn (rtx insn, bool always_reached, bool always_executed) || find_reg_note (insn, REG_NO_CONFLICT, NULL_RTX)) return; +#ifdef HAVE_cc0 + /* We can't move a CC0 setter without the user. */ + if (sets_cc0_p (insn)) + return; +#endif + set = single_set (insn); if (!set) return; |