[llvm] [RISCV][llvm] Support frame index in zilsd optimizer (PR #174073)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 7 12:18:08 PST 2026
================
@@ -462,16 +477,22 @@ bool RISCVPreAllocZilsdOpt::rescheduleLoadStoreInstrs(MachineBasicBlock *MBB) {
continue;
bool IsLd = (MI.getOpcode() == RISCV::LW);
- Register Base = MI.getOperand(1).getReg();
+ const MachineOperand &BaseOp = MI.getOperand(1);
+ unsigned BaseReg;
+ bool BaseIsReg = BaseOp.isReg();
+ if (BaseIsReg)
----------------
topperc wrote:
```suggestion
if (BaseOp.isReg())
```
https://github.com/llvm/llvm-project/pull/174073
More information about the llvm-commits
mailing list