Skip to content

Commit

Permalink
JIT: enable cloning of loops with EH in release (#111726)
Browse files Browse the repository at this point in the history
My earlier changes left this enabled only in debug and checked builds.

Fixes #111351.
  • Loading branch information
AndyAyersMS authored Jan 23, 2025
1 parent ba72b97 commit c75166b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coreclr/jit/loopcloning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1854,7 +1854,7 @@ bool Compiler::optIsLoopClonable(FlowGraphNaturalLoop* loop, LoopCloneContext* c
return false;
}

bool cloneLoopsWithEH = false;
bool cloneLoopsWithEH = true;
INDEBUG(cloneLoopsWithEH = (JitConfig.JitCloneLoopsWithEH() > 0);)
INDEBUG(const char* reason);

Expand Down Expand Up @@ -2008,7 +2008,7 @@ void Compiler::optCloneLoop(FlowGraphNaturalLoop* loop, LoopCloneContext* contex
}
#endif

bool cloneLoopsWithEH = false;
bool cloneLoopsWithEH = true;
INDEBUG(cloneLoopsWithEH = (JitConfig.JitCloneLoopsWithEH() > 0);)

assert(loop->EntryEdges().size() == 1);
Expand Down

0 comments on commit c75166b

Please sign in to comment.