re PR middle-end/33157 (cmov4.c fails on i686)
authorUros Bizjak <ubizjak@gmail.com>
Fri, 24 Aug 2007 10:58:12 +0000 (12:58 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Fri, 24 Aug 2007 10:58:12 +0000 (12:58 +0200)
PR middle-end/33157
* ifcvt.c (noce_find_if_block): Do not clear if_info.cond_earliest
field when initializing if_info structure.

From-SVN: r127766

gcc/ChangeLog
gcc/ifcvt.c

index 43baaaa36a5d658ee4b280e415f5f19a4ef0796b..70b326f78c215592d8a6e71993b67c349d5ff1ab 100644 (file)
@@ -1,3 +1,9 @@
+2007-08-24  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR middle-end/33157
+       * ifcvt.c (noce_find_if_block): Do not clear if_info.cond_earliest
+       field when initializing if_info structure.
+
 2007-08-24  Richard Guenther  <rguenther@suse.de>
 
        * Makefile.in (tree-inline.o): Add $(TARGET_H) and $(INTEGRATE_H)
index cea9dec60a41920660febb70f0359b1c130cf9ff..b3cdf3aaaad0904bb481eeaa426bf78bd0e56f23 100644 (file)
@@ -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;