src/hotspot/share/opto/gcm.cpp
changeset 49877 d84f06a0cae1
parent 49026 844bf1deff1a
child 50235 ff5d0ea58d9b
--- a/src/hotspot/share/opto/gcm.cpp	Tue Apr 24 12:20:10 2018 -0700
+++ b/src/hotspot/share/opto/gcm.cpp	Tue Apr 24 15:07:20 2018 -0700
@@ -1867,8 +1867,7 @@
   }
 
   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();