8200303: C2 should leverage profiling for lookupswitch/tableswitch

Reviewed-by: kvn, thartmann
This commit is contained in:
Roland Westrelin 2018-04-24 15:07:20 -07:00
parent c6ece0ba39
commit 93691571bc
12 changed files with 629 additions and 106 deletions

View file

@ -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();