File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2379,11 +2379,11 @@ PhaseStatus Compiler::optOptimizeFlow()
23792379
23802380 bool modified = fgUpdateFlowGraph (/* doTailDuplication */ true );
23812381
2382- // Skipping fgExpandRarelyRunBlocks when we have PGO data incurs diffs if the profile is inconsistent,
2383- // as it will propagate missing profile weights throughout the flowgraph.
2384- // Running profile synthesis beforehand should get rid of these diffs.
23852382 // TODO: Always rely on profile synthesis to identify cold blocks.
2386- modified |= fgExpandRarelyRunBlocks ();
2383+ if (!fgIsUsingProfileWeights ())
2384+ {
2385+ modified |= fgExpandRarelyRunBlocks ();
2386+ }
23872387
23882388 // Run branch optimizations for non-handler blocks.
23892389 assert (!fgFuncletsCreated);
You can’t perform that action at this time.
0 commit comments