[all-commits] [llvm/llvm-project] febd4b: [LoongArch][MC] Refine conditions for emitting ALI...

ZhaoQi via All-commits all-commits at lists.llvm.org
Wed Aug 13 00:58:32 PDT 2025


  Branch: refs/heads/users/zhaoqi5/refine-align-emit
  Home:   https://github.com/llvm/llvm-project
  Commit: febd4b982711dc6402b306a2f4db3406af4da29a
      https://github.com/llvm/llvm-project/commit/febd4b982711dc6402b306a2f4db3406af4da29a
  Author: Qi Zhao <zhaoqi01 at loongson.cn>
  Date:   2025-08-13 (Wed, 13 Aug 2025)

  Changed paths:
    M llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.cpp
    M llvm/test/CodeGen/LoongArch/linker-relaxation.ll
    M llvm/test/MC/LoongArch/Misc/cfi-advance.s
    A llvm/test/MC/LoongArch/Relocations/align-after-relax.s
    M llvm/test/MC/LoongArch/Relocations/relax-addsub.s
    A llvm/test/MC/LoongArch/Relocations/relax-align-in-subsection.s
    M llvm/test/MC/LoongArch/Relocations/relax-align.s
    M llvm/test/MC/LoongArch/Relocations/sub-expr.s

  Log Message:
  -----------
  [LoongArch][MC] Refine conditions for emitting ALIGN relocations

According to the suggestions in
https://github.com/llvm/llvm-project/pull/150816, this commit refine
the conditions for emitting R_LARCH_ALIGN relocations.

Some existing tests are updated to avoid being affected by this
optimization. New tests are added to verify: removal of redundant
ALIGN relocations, ALIGN emitted after the first linker-relaxable
instruction, and conservatively emitted ALIGN in lower-numbered
subsections.



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