diff options
author | Richard Henderson <rth@cygnus.com> | 2000-05-06 14:50:03 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-05-06 14:50:03 -0700 |
commit | 02a749ecc36f4c119b02ebb54377db90d09c0774 (patch) | |
tree | 23f0f6da1acf59fb1fd9a7d3436a260396f6eb83 /gcc/ifcvt.c | |
parent | 65189757c0fa149737e2401358372b3f43c64633 (diff) | |
download | gcc-02a749ecc36f4c119b02ebb54377db90d09c0774.zip gcc-02a749ecc36f4c119b02ebb54377db90d09c0774.tar.gz gcc-02a749ecc36f4c119b02ebb54377db90d09c0774.tar.bz2 |
ifcvt.c (noce_process_if_block): Don't use an insn_b from test_bb if a or b uses x.
* ifcvt.c (noce_process_if_block): Don't use an insn_b from
test_bb if a or b uses x.
From-SVN: r33738
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r-- | gcc/ifcvt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index 25558f3..9b66d59 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -1079,7 +1079,8 @@ noce_process_if_block (test_bb, then_bb, else_bb, join_bb) || (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, a)) + || reg_mentioned_p (x, a) + || reg_mentioned_p (x, SET_SRC (set_b))) insn_b = set_b = NULL_RTX; } b = (set_b ? SET_SRC (set_b) : x); |