Skip to content

Commit 4e4e721

Browse files
committed
Add a few more opcodes found by asserting on frame indexes with mayLoad/mayStore.
One test looks like a regression, which is probably rematerialization not being handled for something.
1 parent 022fe3b commit 4e4e721

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfo.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ Register RISCVInstrInfo::isLoadFromStackSlot(const MachineInstr &MI,
118118
case RISCV::FLD:
119119
MemBytes = 8;
120120
break;
121+
case RISCV::VL1RE8_V:
122+
case RISCV::VL2RE8_V:
123+
case RISCV::VL4RE8_V:
121124
case RISCV::VL8RE8_V:
122125
if (!MI.getOperand(1).isFI())
123126
return Register();
@@ -164,6 +167,9 @@ Register RISCVInstrInfo::isStoreToStackSlot(const MachineInstr &MI,
164167
case RISCV::FSD:
165168
MemBytes = 8;
166169
break;
170+
case RISCV::VS1R_V:
171+
case RISCV::VS2R_V:
172+
case RISCV::VS4R_V:
167173
case RISCV::VS8R_V:
168174
if (!MI.getOperand(1).isFI())
169175
return Register();

0 commit comments

Comments
 (0)