Skip to content

Commit 69ade08

Browse files
authored
[RISCV][NFC] Fix comments in foldMemoryOperandImpl (#70033)
I think the TODO is stale now.
1 parent 0555c9a commit 69ade08

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,7 @@ MachineInstr *RISCVInstrInfo::foldMemoryOperandImpl(
689689
if (MF.getDataLayout().isBigEndian())
690690
return nullptr;
691691

692-
// Fold load from stack followed by sext.w into lw.
693-
// TODO: Fold with sext.b, sext.h, zext.b, zext.h, zext.w?
692+
// Fold load from stack followed by sext.b/sext.h/sext.w/zext.b/zext.h/zext.w.
694693
if (Ops.size() != 1 || Ops[0] != 1)
695694
return nullptr;
696695

0 commit comments

Comments
 (0)