[all-commits] [llvm/llvm-project] 18a065: [RISCV] Move unpaired instruction back in RISCVLoa...

Sudharsan Veeravalli via All-commits all-commits at lists.llvm.org
Wed Apr 1 20:49:19 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 18a065763d267354bafe1d0a41325f50500d5b29
      https://github.com/llvm/llvm-project/commit/18a065763d267354bafe1d0a41325f50500d5b29
  Author: Sudharsan Veeravalli <svs at qti.qualcomm.com>
  Date:   2026-04-02 (Thu, 02 Apr 2026)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVLoadStoreOptimizer.cpp
    M llvm/test/CodeGen/RISCV/xqcilsm-lwmi-swmi-multiple.mir

  Log Message:
  -----------
  [RISCV] Move unpaired instruction back in RISCVLoadStoreOptimizer (#189912)

There are cases when the `Xqcilsm` vendor extension is enabled that we
are unable to pair non-adjacent load/store instructions. The
`RISCVLoadStoreOptimizer` moves the instruction adjacent to the other
before attempting to pair them but does not move them back when it
fails. This can sometimes prevent the generation of the `Xqcilsm`
load/store multiple instructions. This patch ensures that we move the
unpaired instruction back to it's original location.



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