OSDN Git Service

* ifcvt.c (find_cond_trap): Test for exit block.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 15 Jul 2001 00:00:56 +0000 (00:00 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 15 Jul 2001 00:00:56 +0000 (00:00 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44009 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ifcvt.c

index bc4cfcf..1d9c94d 100644 (file)
@@ -1,3 +1,7 @@
+2001-04-14  Richard Henderson  <rth@redhat.com>
+
+       * ifcvt.c (find_cond_trap): Test for exit block.
+
 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
 
        Re-install recently reverted patch.
index 6196522..d23fd3a 100644 (file)
@@ -2018,6 +2018,11 @@ find_cond_trap (test_bb, then_edge, else_edge)
   else
     return FALSE;
 
+  /* Don't confuse a conditional return with something we want to
+     optimize here.  */
+  if (trap_bb == EXIT_BLOCK_PTR)
+    return FALSE;
+
   /* The only instruction in the THEN block must be the trap.  */
   trap = first_active_insn (trap_bb);
   if (! (trap == trap_bb->end