File tree 1 file changed +10
-9
lines changed 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -13567,7 +13567,6 @@ void Compiler::fgComputeBlockAndEdgeWeights()
13567
13567
JITDUMP("*************** In fgComputeBlockAndEdgeWeights()\n");
13568
13568
13569
13569
const bool usingProfileWeights = fgIsUsingProfileWeights();
13570
- const bool isOptimizing = opts.OptimizationEnabled();
13571
13570
13572
13571
fgModified = false;
13573
13572
fgHaveValidEdgeWeights = false;
@@ -13592,14 +13591,7 @@ void Compiler::fgComputeBlockAndEdgeWeights()
13592
13591
JITDUMP(" -- no profile data, so using default called count\n");
13593
13592
}
13594
13593
13595
- if (usingProfileWeights && isOptimizing)
13596
- {
13597
- fgComputeEdgeWeights();
13598
- }
13599
- else
13600
- {
13601
- JITDUMP(" -- not optimizing or no profile data, so not computing edge weights\n");
13602
- }
13594
+ fgComputeEdgeWeights();
13603
13595
}
13604
13596
13605
13597
//-------------------------------------------------------------
@@ -13806,6 +13798,15 @@ void Compiler::fgComputeCalledCount(BasicBlock::weight_t returnWeight)
13806
13798
13807
13799
void Compiler::fgComputeEdgeWeights()
13808
13800
{
13801
+ const bool isOptimizing = opts.OptimizationEnabled();
13802
+ const bool usingProfileWeights = fgIsUsingProfileWeights();
13803
+
13804
+ if (!isOptimizing || !usingProfileWeights)
13805
+ {
13806
+ JITDUMP(" -- not optimizing or no profile data, so not computing edge weights\n");
13807
+ return;
13808
+ }
13809
+
13809
13810
BasicBlock* bSrc;
13810
13811
BasicBlock* bDst;
13811
13812
flowList* edge;
You can’t perform that action at this time.
0 commit comments