[PATCH] D131729: [RISCV] Move xori creation for scalar setccs to lowering.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 15 13:14:05 PDT 2022


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

Add more comments to the setcc lowering code. Swap the operands when we swap
the condition code. Use isInt<12> for the range check after guarding against
signed integer overflow.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131729

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfo.td
  llvm/lib/Target/RISCV/RISCVInstrInfoZb.td
  llvm/test/CodeGen/RISCV/rv32zbt.ll
  llvm/test/CodeGen/RISCV/select-cc.ll
  llvm/test/CodeGen/RISCV/urem-seteq-illegal-types.ll
  llvm/test/CodeGen/RISCV/xaluo.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131729.452789.patch
Type: text/x-patch
Size: 15997 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220815/92c56799/attachment.bin>


More information about the llvm-commits mailing list