diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-02 16:21:30 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-02 16:21:30 +0000 |
commit | 33fb6a59d3daa98dc701897b1946516427c6ae06 (patch) | |
tree | d86a0c6d557aaa514dc706820565f656aca6a30c | |
parent | ef9d55ed8cd17df5cde33d360f288b8e64202570 (diff) | |
download | gcc-33fb6a59d3daa98dc701897b1946516427c6ae06.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167376 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/value-prof.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f73b43b983f..1b942af3b01 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/value-prof.c b/gcc/value-prof.c index 6011922db0a..7d6b7ddbb41 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 { |