[all-commits] [llvm/llvm-project] 5f449b: [RISCV] Allow RISCVMCExpr folding in the absence o...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Mar 15 11:25:53 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f449b9a5dae35afc88c825a0703e348f47e5875
      https://github.com/llvm/llvm-project/commit/5f449b9a5dae35afc88c825a0703e348f47e5875
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-03-15 (Sat, 15 Mar 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCExpr.cpp
    M llvm/test/MC/RISCV/hilo-constaddr-expr.s

  Log Message:
  -----------
  [RISCV] Allow RISCVMCExpr folding in the absence of linker relaxaxation

In the AArch64 target, `bar: add x0, x0, :lo12:foo-bar; foo:`
can be folded.

Remove the restriction (https://reviews.llvm.org/D104473), which became
unnecessary after https://reviews.llvm.org/D155357



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