mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Disable UseAggressiveReg2MemForCodeSize on WASM
It causes an LLVM WASM backend instruction selection failure. rdar://139541259
This commit is contained in:
@@ -3786,6 +3786,11 @@ bool CompilerInvocation::parseArgs(
|
||||
OPT_disable_aggressive_reg2mem,
|
||||
SILOpts.UseAggressiveReg2MemForCodeSize);
|
||||
|
||||
// We ran into a LLVM backed instruction selection failure.
|
||||
// This is a workaround.
|
||||
if (LangOpts.Target.isWasm())
|
||||
SILOpts.UseAggressiveReg2MemForCodeSize = false;
|
||||
|
||||
// With Swift 6, enable @_spiOnly by default. This also enables proper error
|
||||
// reporting of ioi references from spi decls.
|
||||
if (LangOpts.EffectiveLanguageVersion.isVersionAtLeast(6)) {
|
||||
|
||||
Reference in New Issue
Block a user