From a264a7e4134a5a70bb0cc422bac5c232ba8ff97c Mon Sep 17 00:00:00 2001 From: Bruce Forstall Date: Fri, 22 Mar 2024 22:49:09 -0700 Subject: [PATCH] Clear m_nodeToLoopMemoryBlockMap when preparing to repeat optmizations (#100164) --- src/coreclr/jit/compiler.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/coreclr/jit/compiler.cpp b/src/coreclr/jit/compiler.cpp index 200c31cd60524..a43f4d0427aff 100644 --- a/src/coreclr/jit/compiler.cpp +++ b/src/coreclr/jit/compiler.cpp @@ -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()) {