[PATCH] D76445: [RISCV][GlobalISel] Select ALU GPR instructions

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 6 19:15:29 PDT 2023


craig.topper updated this revision to Diff 556102.
craig.topper added a comment.

Support G_SUB with immediate explicitly. It is not canonicalized to G_ADD.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76445/new/

https://reviews.llvm.org/D76445

Files:
  llvm/lib/Target/RISCV/CMakeLists.txt
  llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
  llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
  llvm/lib/Target/RISCV/RISCVGISel.td
  llvm/test/CodeGen/RISCV/GlobalISel/alu-roundtrip-rv64.ll
  llvm/test/CodeGen/RISCV/GlobalISel/alu-roundtrip.ll
  llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/alu-rv32.mir
  llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/alu-rv64.mir
  llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/alu_m-rv32.mir
  llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/alu_m-rv64.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76445.556102.patch
Type: text/x-patch
Size: 81652 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230907/05fb0c7e/attachment.bin>


More information about the llvm-commits mailing list