We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bd4113 commit e07f4d4Copy full SHA for e07f4d4
lib/Frontend/CompilerInvocation.cpp
@@ -3786,6 +3786,11 @@ bool CompilerInvocation::parseArgs(
3786
OPT_disable_aggressive_reg2mem,
3787
SILOpts.UseAggressiveReg2MemForCodeSize);
3788
3789
+ // We ran into a LLVM backed instruction selection failure.
3790
+ // This is a workaround.
3791
+ if (LangOpts.Target.isWasm())
3792
+ SILOpts.UseAggressiveReg2MemForCodeSize = false;
3793
+
3794
// With Swift 6, enable @_spiOnly by default. This also enables proper error
3795
// reporting of ioi references from spi decls.
3796
if (LangOpts.EffectiveLanguageVersion.isVersionAtLeast(6)) {
0 commit comments