We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b94a82d commit 67604d3Copy full SHA for 67604d3
src/coreclr/jit/patchpoint.cpp
@@ -151,8 +151,13 @@ class PatchpointTransformer
151
152
helperBlock->SetFlags(BBF_BACKWARD_JUMP | BBF_NONE_QUIRK);
153
154
- compiler->fgAddRefPred(helperBlock, block);
155
- compiler->fgAddRefPred(remainderBlock, helperBlock);
+ FlowEdge* const falseEdge = compiler->fgAddRefPred(helperBlock, block);
+ FlowEdge* const trueEdge = compiler->fgGetPredForBlock(remainderBlock, block);
156
+ trueEdge->setLikelihood(HIGH_PROBABILITY / 100.0);
157
+ falseEdge->setLikelihood((100 - HIGH_PROBABILITY) / 100.0);
158
+
159
+ FlowEdge* const newEdge = compiler->fgAddRefPred(remainderBlock, helperBlock);
160
+ newEdge->setLikelihood(1.0);
161
162
// Update weights
163
remainderBlock->inheritWeight(block);
0 commit comments