* ifcvt.c (find_cond_trap): Properly handle case where
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Nov 2013 18:14:10 +0000 (18:14 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Nov 2013 18:14:10 +0000 (18:14 +0000)
trap_bb == else_bb.

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

gcc/ChangeLog
gcc/ifcvt.c

index a6502dd..d9e57b0 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-15  Jeff Law  <law@redhat.com>
+
+       * ifcvt.c (find_cond_trap): Properly handle case where
+       trap_bb == else_bb.
+
 2013-11-15  Andreas Schwab  <schwab@linux-m68k.org>
 
        * configure: Regenerate.
index fafff9d..17d26c5 100644 (file)
@@ -3694,7 +3694,7 @@ find_cond_trap (basic_block test_bb, edge then_edge, edge else_edge)
   /* Wire together the blocks again.  */
   if (current_ir_type () == IR_RTL_CFGLAYOUT)
     single_succ_edge (test_bb)->flags |= EDGE_FALLTHRU;
-  else
+  else if (trap_bb == then_bb)
     {
       rtx lab, newjump;