Skip to content

Commit 2c9dbda

Browse files
committed
Force 2 OptRepeat iterations
1 parent 282891d commit 2c9dbda

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/coreclr/jit/compiler.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -3150,6 +3150,15 @@ void Compiler::compInitOptions(JitFlags* jitFlags)
31503150
#endif // DEBUG
31513151
}
31523152

3153+
////////////////// TESTING
3154+
if (!opts.optRepeat && (JitConfig.JitEnableOptRepeat() != 0))
3155+
{
3156+
opts.optRepeat = true;
3157+
opts.optRepeatCount = JitConfig.JitOptRepeatCount();
3158+
JITDUMP("\n*************** JitOptRepeat FORCED; repetition count: %d\n\n", opts.optRepeatCount);
3159+
}
3160+
////////////////// END TESTING
3161+
31533162
#ifdef DEBUG
31543163
assert(!codeGen->isGCTypeFixed());
31553164
opts.compGcChecks = (JitConfig.JitGCChecks() != 0) || compStressCompile(STRESS_GENERIC_VARN, 5);

0 commit comments

Comments
 (0)