summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-06 21:41:10 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-06 21:41:10 +0000
commitcf3e8506150ca7d1489cb480fe9570d911fd388d (patch)
tree75470c641379e3ac0a91a45fa6a63ddc99871c18
parent148a12abe2eef7646fc1926d47891aad4179882b (diff)
downloadgcc-cf3e8506150ca7d1489cb480fe9570d911fd388d.tar.gz
* ifcvt.c (noce_process_if_block): Don't use an insn_b from
test_bb if insn_a uses x. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33737 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/ifcvt.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a24977720e7..af787c65d4b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -5,6 +5,9 @@
* flow.c (mark_set_1): Respect not_dead when updating reg_live.
+ * ifcvt.c (noce_process_if_block): Don't use an insn_b from
+ test_bb if insn_a uses x.
+
2000-05-06 Zack Weinberg <zack@wolery.cumb.org>
* cpphash.h: Remove conditional #define of __extension__.
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c
index f1b8a952b72..25558f33112 100644
--- a/gcc/ifcvt.c
+++ b/gcc/ifcvt.c
@@ -1078,7 +1078,8 @@ noce_process_if_block (test_bb, then_bb, else_bb, join_bb)
|| GET_CODE (insn_b) != INSN
|| (set_b = single_set (insn_b)) == NULL_RTX
|| ! rtx_equal_p (x, SET_DEST (set_b))
- || reg_mentioned_p (x, cond))
+ || reg_mentioned_p (x, cond)
+ || reg_mentioned_p (x, a))
insn_b = set_b = NULL_RTX;
}
b = (set_b ? SET_SRC (set_b) : x);