mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8200303: C2 should leverage profiling for lookupswitch/tableswitch
Reviewed-by: kvn, thartmann
This commit is contained in:
parent
c6ece0ba39
commit
93691571bc
12 changed files with 629 additions and 106 deletions
|
@ -1867,8 +1867,7 @@ float Block::succ_prob(uint i) {
|
|||
}
|
||||
|
||||
case Op_Jump:
|
||||
// Divide the frequency between all successors evenly
|
||||
return 1.0f/_num_succs;
|
||||
return n->as_MachJump()->_probs[get_node(i + eidx + 1)->as_JumpProj()->_con];
|
||||
|
||||
case Op_Catch: {
|
||||
const CatchProjNode *ci = get_node(i + eidx + 1)->as_CatchProj();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue