[all-commits] [llvm/llvm-project] 08a32b: [RISCV][GlobalISel] Fold large constant offsets in...

Kane Wang via All-commits all-commits at lists.llvm.org
Tue Sep 8 05:53:37 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 08a32ba66e9c01320a6ab13edfc5f332af8d47ed
      https://github.com/llvm/llvm-project/commit/08a32ba66e9c01320a6ab13edfc5f332af8d47ed
  Author: Kane Wang <wangqiang1 at kylinos.cn>
  Date:   2026-09-08 (Tue, 08 Sep 2026)

  Changed paths:
    M llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
    A llvm/test/CodeGen/RISCV/GlobalISel/load-store.ll

  Log Message:
  -----------
  [RISCV][GlobalISel] Fold large constant offsets in selectAddrRegImm (#219161)

Fold ADDI adjustment (AddiPair) for offsets in [-4096, 4094] and split
larger constants into materialized Hi + Lo12 offset, matching SDAG. Add
isWorthFoldingAdd to guard the split and extract the shared ADDI
renderer into renderAddiPair.

Assisted-by: Claude



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