Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/coreclr/src/jit/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -4964,7 +4964,7 @@ class Compiler

// When the flow graph changes, we need to update the block numbers, predecessor lists, reachability sets, and
// dominators.
void fgUpdateChangedFlowGraph();
void fgUpdateChangedFlowGraph(bool computeDoms = true);

public:
// Compute the predecessors of the blocks in the control flow graph.
Expand Down
11 changes: 8 additions & 3 deletions src/coreclr/src/jit/flowgraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1865,7 +1865,7 @@ bool Compiler::fgReachable(BasicBlock* b1, BasicBlock* b2)
* it again.
*/

void Compiler::fgUpdateChangedFlowGraph()
void Compiler::fgUpdateChangedFlowGraph(bool computeDoms)
{
// We need to clear this so we don't hit an assert calling fgRenumberBlocks().
fgDomsComputed = false;
Expand All @@ -1875,7 +1875,11 @@ void Compiler::fgUpdateChangedFlowGraph()

fgComputePreds();
fgComputeEnterBlocksSet();
fgComputeReachability();
fgComputeReachabilitySets();
if (computeDoms)
{
fgComputeDoms();
}
}

/*****************************************************************************
Expand Down Expand Up @@ -3722,7 +3726,8 @@ PhaseStatus Compiler::fgInsertGCPolls()
{
noway_assert(opts.OptimizationEnabled());
fgReorderBlocks();
fgUpdateChangedFlowGraph();
constexpr bool computeDoms = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const isn't sufficient...?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const would've worked too.

fgUpdateChangedFlowGraph(computeDoms);
}
#ifdef DEBUG
if (verbose)
Expand Down