[PATCH] D97133: [SelectionDAG][RISCV] Teach ComputeNumSignBits to handle SREM.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 20 18:22:42 PST 2021


craig.topper created this revision.
craig.topper added reviewers: asb, luismarques, spatel, RKSimon, lebedev.ri.
Herald added subscribers: StephenFan, vkmr, frasercrmck, ecnelises, evandro, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, atanasyan, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, sdardis.
craig.topper requested review of this revision.
Herald added a subscriber: MaskRay.
Herald added a project: LLVM.

This also removes a pattern from RISCV that is no longer needed
since the sexti32 on the LHS of the srem in the pattern implies
the result is sign extended so the sign_extend_inreg should be
removed in DAG combine now.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D97133

Files:
  llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfoM.td
  llvm/test/CodeGen/Mips/llvm-ir/srem.ll
  llvm/test/CodeGen/RISCV/rv64m-exhaustive-w-insts.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97133.325269.patch
Type: text/x-patch
Size: 10377 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210221/99a1f88e/attachment.bin>


More information about the llvm-commits mailing list