summaryrefslogtreecommitdiff
path: root/gcc/profile.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-26 09:49:47 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-26 09:49:47 +0000
commit22268f3882eb9b7bbf2cc2b5f2e9bd06e82bc98f (patch)
tree521151679baf6233ac731b345b6b703ba053b628 /gcc/profile.c
parentd5d2f74a7a1c6564e4b922f1a11e25c6dab8e072 (diff)
downloadgcc-22268f3882eb9b7bbf2cc2b5f2e9bd06e82bc98f.tar.gz
2010-11-26 Richard Guenther <rguenther@suse.de>
PR tree-optimization/46528 PR debug/46338 * profile.c (branch_prob): Do not split blocks based on locations from debug statements. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167171 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/profile.c')
-rw-r--r--gcc/profile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/profile.c b/gcc/profile.c
index ffcd802375f..b8a43de3463 100644
--- a/gcc/profile.c
+++ b/gcc/profile.c
@@ -940,7 +940,8 @@ branch_prob (void)
for (gsi = gsi_last_bb (bb); !gsi_end_p (gsi); gsi_prev (&gsi))
{
last = gsi_stmt (gsi);
- if (gimple_has_location (last))
+ if (!is_gimple_debug (last)
+ && gimple_has_location (last))
break;
}