diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-02-12 22:32:33 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-02-12 22:32:33 +0000 |
commit | d9da8b4c02490945c709553504269540884b3e87 (patch) | |
tree | 6f2cb4496a9540f20557e99827de0862060d2dfd /gcc/loop-invariant.c | |
parent | 56f281a2b47e973cc02644161c62859400f3e6f4 (diff) | |
download | gcc-d9da8b4c02490945c709553504269540884b3e87.tar.gz |
PR rtl-optimization/26232
* loop-invariant.c (find_invariant_insn): Ignore insns that set CC0.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110897 138bc75d-0d04-0410-961f-82ee72b054a4
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 3ecf9d6126d..f7037474b3a 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; |