[all-commits] [llvm/llvm-project] 22d3cc: [LTO] Preserve module inline asm target properties...

Alexander Richardson via All-commits all-commits at lists.llvm.org
Sat Sep 26 19:02:06 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 22d3cccd0beaf7d2c7728d0bc6fa347283b0bc13
      https://github.com/llvm/llvm-project/commit/22d3cccd0beaf7d2c7728d0bc6fa347283b0bc13
  Author: Alexander Richardson <alexrichardson at google.com>
  Date:   2026-09-26 (Sat, 26 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 (#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



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