OSDN Git Service

PR bootstrap/50738
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Oct 2011 13:39:58 +0000 (13:39 +0000)
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Oct 2011 13:39:58 +0000 (13:39 +0000)
* ifcvt.c (dead_or_predicable): Revert accidental commit with
HAVE_simple_return test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180038 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ifcvt.c

index 8a0f6ef..b99632b 100644 (file)
@@ -1,5 +1,11 @@
 2011-10-15  Alan Modra  <amodra@gmail.com>
 
+       PR bootstrap/50738
+       * ifcvt.c (dead_or_predicable): Revert accidental commit with
+       HAVE_simple_return test.
+
+2011-10-15  Alan Modra  <amodra@gmail.com>
+
        * ifcvt.c (dead_or_predicable): Disable if-conversion when
        doing so is likely to kill a shrink-wrapping opportunity.
 
index fee3532..784e2e8 100644 (file)
@@ -4173,7 +4173,7 @@ dead_or_predicable (basic_block test_bb, basic_block merge_bb,
         register used to pass function parameters, which then must be
         saved in caller-saved regs.  A caller-saved reg requires the
         prologue, killing a shrink-wrap opportunity.  */
-      if ((flag_shrink_wrap && HAVE_simple_return && !epilogue_completed)
+      if ((flag_shrink_wrap && !epilogue_completed)
          && ENTRY_BLOCK_PTR->next_bb == test_bb
          && single_succ_p (new_dest)
          && single_succ (new_dest) == EXIT_BLOCK_PTR