]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ifcvt.c (find_cond_trap): Properly handle case where trap_bb == else_bb.
authorJeff Law <law@redhat.com>
Fri, 15 Nov 2013 18:14:10 +0000 (11:14 -0700)
committerJeff Law <law@gcc.gnu.org>
Fri, 15 Nov 2013 18:14:10 +0000 (11:14 -0700)
* ifcvt.c (find_cond_trap): Properly handle case where
trap_bb == else_bb.

From-SVN: r204856

gcc/ChangeLog
gcc/ifcvt.c

index a6502dda463635b75f8ae8b0776a6b4466f35364..d9e57b0c875aa33526761a0e33e4d8833c4ea6cb 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 fafff9d09255ef5d1d75388c94c31a03e0e4cba7..17d26c583c7501faed98572462df3ded401ad5ed 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;