From edbd5e04f5fc72af921cd5632e661bea54ae7bbf Mon Sep 17 00:00:00 2001 From: "Aman Khalid (from Dev Box)" Date: Wed, 17 Jul 2024 12:40:53 -0400 Subject: [PATCH] Don't do aggressive compaction too early --- src/coreclr/jit/fgopt.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/coreclr/jit/fgopt.cpp b/src/coreclr/jit/fgopt.cpp index 5431d76afc6925..ef32ac5255a683 100644 --- a/src/coreclr/jit/fgopt.cpp +++ b/src/coreclr/jit/fgopt.cpp @@ -5167,16 +5167,17 @@ void Compiler::ehUpdateTryLasts(GetTryLast getTryLast, SetTryLast setTryLast) //------------------------------------------------------------- // fgUpdateFlowGraphPhase: run flow graph optimization as a -// phase, with no tail duplication +// phase, with no tail duplication or aggressive compaction // // Returns: // Suitable phase status // PhaseStatus Compiler::fgUpdateFlowGraphPhase() { - constexpr bool doTailDup = false; - constexpr bool isPhase = true; - const bool madeChanges = fgUpdateFlowGraph(doTailDup, isPhase); + constexpr bool doTailDup = false; + constexpr bool isPhase = true; + constexpr bool doAggressiveCompaction = false; + const bool madeChanges = fgUpdateFlowGraph(doTailDup, isPhase, doAggressiveCompaction); return madeChanges ? PhaseStatus::MODIFIED_EVERYTHING : PhaseStatus::MODIFIED_NOTHING; }