aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-prof.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-12-02 16:21:30 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-12-02 16:21:30 +0000
commit3b38fb7c7dc653b91b755d8f60155f3404b70e2e (patch)
treed86a0c6d557aaa514dc706820565f656aca6a30c /gcc/value-prof.c
parent660b994febbb96159d96d924f1da598a768b4bd2 (diff)
downloadgcc-3b38fb7c7dc653b91b755d8f60155f3404b70e2e.zip
gcc-3b38fb7c7dc653b91b755d8f60155f3404b70e2e.tar.gz
gcc-3b38fb7c7dc653b91b755d8f60155f3404b70e2e.tar.bz2
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 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
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r--gcc/value-prof.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c
index 6011922..7d6b7dd 100644
--- a/gcc/value-prof.c
+++ b/gcc/value-prof.c
@@ -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
{