Skip to content

Commit

Permalink
Clear m_nodeToLoopMemoryBlockMap when preparing to repeat optmizations (
Browse files Browse the repository at this point in the history
  • Loading branch information
BruceForstall authored Mar 23, 2024
1 parent ff0a131 commit a264a7e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/coreclr/jit/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5857,18 +5857,19 @@ void Compiler::generatePatchpointInfo()
// The intent of this method is to clear any information typically assumed
// to be set only once; it is used between iterations when JitOptRepeat is
// in effect.

//
void Compiler::ResetOptAnnotations()
{
assert(opts.optRepeat);
assert(JitConfig.JitOptRepeatCount() > 0);
fgResetForSsa();
vnStore = nullptr;
m_blockToEHPreds = nullptr;
m_dominancePreds = nullptr;
fgSsaPassesCompleted = 0;
fgVNPassesCompleted = 0;
fgSsaValid = false;
vnStore = nullptr;
m_blockToEHPreds = nullptr;
m_dominancePreds = nullptr;
fgSsaPassesCompleted = 0;
fgVNPassesCompleted = 0;
fgSsaValid = false;
m_nodeToLoopMemoryBlockMap = nullptr;

for (BasicBlock* const block : Blocks())
{
Expand Down

0 comments on commit a264a7e

Please sign in to comment.