aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-coalesce.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2008-06-02 18:36:49 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2008-06-02 16:36:49 +0000
commit3250d724898f2c4af583d67ba86c34193ba86a89 (patch)
tree9966e2434cb3b536d44ef7b732d765660efcb506 /gcc/tree-ssa-coalesce.c
parent79711d26dbc325abf22d935cc248bcd59a06eb21 (diff)
downloadgcc-3250d724898f2c4af583d67ba86c34193ba86a89.zip
gcc-3250d724898f2c4af583d67ba86c34193ba86a89.tar.gz
gcc-3250d724898f2c4af583d67ba86c34193ba86a89.tar.bz2
predict.c (maybe_hot_frequency_p): Break out of...
* predict.c (maybe_hot_frequency_p): Break out of... (maybe_hot_bb_p): ... here. (maybe_hot_edge_p): New. * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge. * basic-block.h (maybe_hot_edge_p): Declare. From-SVN: r136282
Diffstat (limited to 'gcc/tree-ssa-coalesce.c')
-rw-r--r--gcc/tree-ssa-coalesce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-coalesce.c b/gcc/tree-ssa-coalesce.c
index ef1ebca..172f1a2 100644
--- a/gcc/tree-ssa-coalesce.c
+++ b/gcc/tree-ssa-coalesce.c
@@ -114,7 +114,7 @@ coalesce_cost_edge (edge e)
return MUST_COALESCE_COST;
return coalesce_cost (EDGE_FREQUENCY (e),
- maybe_hot_bb_p (e->src),
+ maybe_hot_edge_p (e),
EDGE_CRITICAL_P (e));
}