llvm-project
22d3cccd - [LTO] Preserve module inline asm target properties for .lto_discard and symvers (#225130)

Commit
25 days ago
[LTO] Preserve module inline asm target properties for .lto_discard and symvers (#225130) Previously, LTO::addRegularLTO() and IRLinker::run() called prependModuleInlineAsm() and appendModuleInlineAsm() with a plain string when synthesizing `.lto_discard` and imported `.symver` directives, creating a new GlobalAsmFragment with empty TargetCPU and TargetFeatures instead of preserving the existing module inline asm's properties. Copy the front fragment's Props so these synthesized directives are merged into the module's inline asm with the same target features. This commit was created with the help of AI tools Pull-Request: https://github.com/llvm/llvm-project/pull/225130
Author
Parents
Loading