summaryrefslogtreecommitdiff
path: root/gcc/ifcvt.c
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-24 10:58:12 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-24 10:58:12 +0000
commit30e5822c145e7dd0be7729a186a0f1ee46d03129 (patch)
tree59bee6d395e2ca1cace669ce3a6e6bd406f06617 /gcc/ifcvt.c
parent08e8bd10f66fb71c8e091f720149fe2a2c42b69e (diff)
downloadgcc-30e5822c145e7dd0be7729a186a0f1ee46d03129.tar.gz
PR middle-end/33157
* ifcvt.c (noce_find_if_block): Do not clear if_info.cond_earliest field when initializing if_info structure. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127766 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r--gcc/ifcvt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c
index cea9dec60a4..b3cdf3aaaad 100644
--- a/gcc/ifcvt.c
+++ b/gcc/ifcvt.c
@@ -2650,6 +2650,7 @@ noce_find_if_block (basic_block test_bb,
basic_block then_bb, else_bb, join_bb;
bool then_else_reversed = false;
rtx jump, cond;
+ rtx cond_earliest;
struct noce_if_info if_info;
/* We only ever should get here before reload. */
@@ -2725,7 +2726,7 @@ noce_find_if_block (basic_block test_bb,
/* If this is not a standard conditional jump, we can't parse it. */
cond = noce_get_condition (jump,
- &if_info.cond_earliest,
+ &cond_earliest,
then_else_reversed);
if (!cond)
return FALSE;
@@ -2741,6 +2742,7 @@ noce_find_if_block (basic_block test_bb,
if_info.else_bb = else_bb;
if_info.join_bb = join_bb;
if_info.cond = cond;
+ if_info.cond_earliest = cond_earliest;
if_info.jump = jump;
if_info.then_else_reversed = then_else_reversed;