Skip to content

Commit

Permalink
Remove fgUpdateFlowGraph();
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo committed Sep 29, 2023
1 parent 9765a3c commit cee2b41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/coreclr/jit/ifconversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -793,5 +793,10 @@ PhaseStatus Compiler::optIfConversion()
}
#endif

if (madeChanges)
{
fgRenumberBlocks();
}

return madeChanges ? PhaseStatus::MODIFIED_EVERYTHING : PhaseStatus::MODIFIED_NOTHING;
}
1 change: 0 additions & 1 deletion src/coreclr/jit/optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5385,7 +5385,6 @@ PhaseStatus Compiler::optOptimizeLayout()

madeChanges |= fgUpdateFlowGraph(/* allowTailDuplication */ false);
madeChanges |= fgReorderBlocks(/* useProfile */ true);
madeChanges |= fgUpdateFlowGraph();

// fgReorderBlocks can cause IR changes even if it does not modify
// the flow graph. It calls gtPrepareCost which can cause operand swapping.
Expand Down

0 comments on commit cee2b41

Please sign in to comment.