------- Comment #7 from ubizjak at gmail dot com 2007-08-24 10:42 -------
Sometimes it is neccessary to check where you clear a structure.
Attached patch fixes this PR.
Index: ifcvt.c
===================================================================
--- ifcvt.c (revision 127761)
+++ ifcvt.c (working copy)
@@ -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;
--
ubizjak at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |ubizjak at gmail dot com
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2007-08-23 10:28:09 |2007-08-24 10:42:27
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33157