[PATCH] D95756: [RISCV][LegalizeTypes] Try to expand BSWAP before promoting if the promoted BSWAP would expand anyway.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 31 11:49:13 PST 2021


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

Fixup comments in TargetLowering.h to mention vectors. Though I don't think vectors ever reach the code, the code does call getScalarType internally.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D95756

Files:
  llvm/include/llvm/CodeGen/TargetLowering.h
  llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/test/CodeGen/RISCV/bswap-ctlz-cttz-ctpop.ll
  llvm/test/CodeGen/RISCV/rv64Zbb.ll
  llvm/test/CodeGen/RISCV/rv64Zbp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95756.320370.patch
Type: text/x-patch
Size: 24692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210131/a4201f76/attachment.bin>


More information about the llvm-commits mailing list