Skip to content

Commit 69b5d67

Browse files
Do not devirtualize if optimizations disabled (#61868)
We started doing devir in unoptimized builds. I assume that was an unintended consequence of #61453.
1 parent 7099f4b commit 69b5d67

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/coreclr/jit/importer.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21325,6 +21325,12 @@ void Compiler::impDevirtualizeCall(GenTreeCall* call,
2132521325
return;
2132621326
}
2132721327

21328+
// Bail if optimizations are disabled.
21329+
if (opts.OptimizationDisabled())
21330+
{
21331+
return;
21332+
}
21333+
2132821334
#if defined(DEBUG)
2132921335
// Bail if devirt is disabled.
2133021336
if (JitConfig.JitEnableDevirtualization() == 0)

0 commit comments

Comments
 (0)