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.
2 parents 7383bb3 + 05db4f0 commit a2577f0Copy full SHA for a2577f0
lib/Frontend/CompilerInvocation.cpp
@@ -3786,6 +3786,11 @@ bool CompilerInvocation::parseArgs(
3786
OPT_disable_aggressive_reg2mem,
3787
SILOpts.UseAggressiveReg2MemForCodeSize);
3788
3789
+ // We ran into an LLVM backend 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