This pattern can occur when an unsigned is used to index an array
on RV64.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/RISCV/RISCVInstrInfo.td | ||
---|---|---|
336 | This is just NegImm and ImmSub32 composed? |
llvm/lib/Target/RISCV/RISCVInstrInfo.td | ||
---|---|---|
336 | (also a shorter name that doesn't require spelling 32 in words would be ImmSubFrom32) |
llvm/lib/Target/RISCV/RISCVInstrInfo.td | ||
---|---|---|
336 | SDNodeXForms can't be composed can they? |
Rename to ImmSubFrom32
Remove ImmROTL2RW which was identical to ImmSubFrom32 in another file
Rename ImmROTL2R to ImmSubFromXLen for consistency
llvm/lib/Target/RISCV/RISCVInstrInfo.td | ||
---|---|---|
336 | Hmm, you can in the patterns but seems there's no way to declare an alias for that. |
llvm/lib/Target/RISCV/RISCVInstrInfoB.td | ||
---|---|---|
48–49 | Probably worth just moving this now; no doubt something will come along later that needs it. |
This is just NegImm and ImmSub32 composed?