[cmo] [aggresive] Don't attach the usableFromInline attribute

in the CMO pass in aggressive mode

Changing the AST mid-pipeline is probably not a good idea.

rdar://173172456
This commit is contained in:
Arnold Schwaighofer
2026-03-23 14:11:02 -07:00
parent eff34d5aa0
commit 72bd56de5b
14 changed files with 88 additions and 12 deletions
@@ -234,6 +234,9 @@ static bool readOptionsBlock(llvm::BitstreamCursor &cursor,
case options_block::OSLOG_STRING_SECTION_NAME:
extendedInfo.setOSLogStringSectionName(blobData);
break;
case options_block::AGGRESSIVE_CMO:
extendedInfo.setAggressiveCMOEnabled(true);
break;
default:
// Unknown options record, possibly for use by a future version of the
// module format.
@@ -1588,6 +1591,7 @@ ModuleFileSharedCore::ModuleFileSharedCore(
Bits.SerializePackageEnabled = extInfo.serializePackageEnabled();
Bits.StrictMemorySafety = extInfo.strictMemorySafety();
Bits.DeferredCodeGen = extInfo.deferredCodeGen();
Bits.AggressiveCMOEnabled = extInfo.isAggressiveCMOEnabled();
MiscVersion = info.miscVersion;
SDKVersion = info.sdkVersion;
ModuleABIName = extInfo.getModuleABIName();