- Initialize to 0 at compiler startup
- Set flag when finally cloning optimization kicks in
Fixes non-deterministic generation of nop opcodes into ARM32 code
/* This global flag is set whenever we add a throw block for a RngChk */
fgRngChkThrowAdded = false; /* reset flag for fgIsCodeAdded() */
+ /* Keep track of whether or not EH statements have been optimized */
+ fgOptimizedFinally = false;
+
/* We will record a list of all BBJ_RETURN blocks here */
fgReturnBlocks = nullptr;
if (cloneCount > 0)
{
JITDUMP("fgCloneFinally() cloned %u finally handlers\n", cloneCount);
+ fgOptimizedFinally = true;
#ifdef DEBUG
if (verbose)