[all-commits] [llvm/llvm-project] 76028e: [RISCV] Fix RISCVFoldMemOffset to report when it m...

Jim Lin via All-commits all-commits at lists.llvm.org
Wed Jul 8 18:29:06 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76028e1199ad4d1a380c7cf367a072095f6dba01
      https://github.com/llvm/llvm-project/commit/76028e1199ad4d1a380c7cf367a072095f6dba01
  Author: Jim Lin <jim at andestech.com>
  Date:   2026-07-09 (Thu, 09 Jul 2026)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVFoldMemOffset.cpp

  Log Message:
  -----------
  [RISCV] Fix RISCVFoldMemOffset to report when it makes changes (#208149)

runOnMachineFunction initialized MadeChange to false and returned it,
but never set it to true even though the fold path rewrites memory
offsets, replaces registers, and erases the ADDI. As a result the pass
always reported that it made no changes, so the pass manager could keep
stale analyses valid after the function had actually been modified.

Set MadeChange to true after folding an ADDI.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply at anthropic.com>



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