summaryrefslogtreecommitdiff
path: root/gcc/cfghooks.c
diff options
context:
space:
mode:
authorccoutant <ccoutant@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-24 22:37:05 +0000
committerccoutant <ccoutant@138bc75d-0d04-0410-961f-82ee72b054a4>2009-07-24 22:37:05 +0000
commit04953c086dbc2ee9a2350d2618094aebd89dea7f (patch)
tree6458eefa49d090a1d57d4fe791e5a56f2a987f5e /gcc/cfghooks.c
parent270aef919c1b4cf7ea1c54e861768c20d5901471 (diff)
downloadgcc-04953c086dbc2ee9a2350d2618094aebd89dea7f.tar.gz
* cfghooks.c (split_block): Copy discriminator to new block.
* tree-cfg.c (assign_discriminator): Check location of last instruction in block as well as first. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150065 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfghooks.c')
-rw-r--r--gcc/cfghooks.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cfghooks.c b/gcc/cfghooks.c
index 2c65726fe17..d6690a4b434 100644
--- a/gcc/cfghooks.c
+++ b/gcc/cfghooks.c
@@ -437,6 +437,7 @@ split_block (basic_block bb, void *i)
new_bb->count = bb->count;
new_bb->frequency = bb->frequency;
new_bb->loop_depth = bb->loop_depth;
+ new_bb->discriminator = bb->discriminator;
if (dom_info_available_p (CDI_DOMINATORS))
{