[all-commits] [llvm/llvm-project] 5beabb: [LTO] Preserve module inline asm target properties...
Alexander Richardson via All-commits
all-commits at lists.llvm.org
Mon Sep 21 08:59:52 PDT 2026
Branch: refs/heads/users/arichardson/lto-preserve-module-inline-asm-target-properties-for-lto
Home: https://github.com/llvm/llvm-project
Commit: 5beabb0797fe20ea16eccb8f444d04eaac7dc734
https://github.com/llvm/llvm-project/commit/5beabb0797fe20ea16eccb8f444d04eaac7dc734
Author: Alex Richardson <alexrichardson at google.com>
Date: 2026-09-21 (Mon, 21 Sep 2026)
Changed paths:
M cross-project-tests/riscv/lto-inline-asm-abi.c
M llvm/lib/LTO/LTO.cpp
M llvm/lib/Linker/IRMover.cpp
M llvm/test/LTO/RISCV/module-asm.ll
Log Message:
-----------
[LTO] Preserve module inline asm target properties for .lto_discard and symvers
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
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list