[PATCH] D98877: [RISCV] Use selectImm for RV32. NFC
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 18 10:14:16 PDT 2021
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfo.td:879
-
-def : Pat<(simm12:$imm), (ADDI X0, simm12:$imm)>;
-def : Pat<(simm32hi20:$imm), (LUI (HI20 imm:$imm))>;
----------------
Note these first two patterns don't have IsRV32, but I don't think they were reachable with RV64 since selectImm runs first.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98877/new/
https://reviews.llvm.org/D98877
More information about the llvm-commits
mailing list