Skip to content

Commit

Permalink
JIT: Reset optReachability bitvec traits in IV opts (#103042)
Browse files Browse the repository at this point in the history
IV opts relied on the RBO phase to reset these bitvec traits, which
would cause problems if the RBO phase was disabled.

Fix #102978
  • Loading branch information
jakobbotsch committed Jun 4, 2024
1 parent 40ff2ec commit 837eb27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/coreclr/jit/inductionvariableopts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1169,8 +1169,9 @@ PhaseStatus Compiler::optInductionVariables()

bool changed = false;

m_dfsTree = fgComputeDfs();
m_loops = FlowGraphNaturalLoops::Find(m_dfsTree);
optReachableBitVecTraits = nullptr;
m_dfsTree = fgComputeDfs();
m_loops = FlowGraphNaturalLoops::Find(m_dfsTree);

LoopLocalOccurrences loopLocals(m_loops);

Expand Down

0 comments on commit 837eb27

Please sign in to comment.