]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect the case we need to split...
authorRichard Guenther <rguenther@suse.de>
Thu, 2 Dec 2010 16:21:30 +0000 (16:21 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 2 Dec 2010 16:21:30 +0000 (16:21 +0000)
2010-12-02  Richard Guenther  <rguenther@suse.de>

* value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect
the case we need to split the edge and not the block.

From-SVN: r167376

gcc/ChangeLog
gcc/value-prof.c

index f73b43b983fb365cf0d45cc090f25cd004e23b71..1b942af3b01ff29c01c07cf6f32397d697c05b63 100644 (file)
@@ -1,3 +1,8 @@
+2010-12-02  Richard Guenther  <rguenther@suse.de>
+
+       * value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect
+       the case we need to split the edge and not the block.
+
 2010-12-02  Bernd Schmidt  <bernds@codesourcery.com>
 
        DFA model for Core 2 and Core i7 scheduling.
index 6011922db0af3d623da717d026fa912720248c9f..7d6b7ddbb41ad210be03639d5fa320fe4e41cdc4 100644 (file)
@@ -1146,7 +1146,7 @@ gimple_ic (gimple icall_stmt, struct cgraph_node *direct_call,
   icall_bb->count = all - count;
 
   /* Do not disturb existing EH edges from the indirect call.  */
-  if (gsi_stmt (gsi_last_bb (icall_bb)) != icall_stmt)
+  if (!stmt_ends_bb_p (icall_stmt))
     e_ij = split_block (icall_bb, icall_stmt);
   else
     {