[PATCH] D144229: [RISCV] Select signed and unsigned bitfield extracts for XTHeadBb

Philipp Tomsich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 17 05:29:45 PST 2023


philipp.tomsich updated this revision to Diff 498341.
philipp.tomsich added a comment.

- fix (and X C1 <https://reviews.llvm.org/C1>) cases for th.extu
  - don't use th.extu if andi can be used
  - ensure it is used for bitfield extractions starting at bit 0 (instead of falling back to (shr (shl X C1 <https://reviews.llvm.org/C1>) C2))


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D144229

Files:
  llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
  llvm/lib/Target/RISCV/RISCVISelDAGToDAG.h
  llvm/lib/Target/RISCV/RISCVInstrInfoXTHead.td
  llvm/test/CodeGen/RISCV/bitextract-mac.ll
  llvm/test/CodeGen/RISCV/rotl-rotr.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144229.498341.patch
Type: text/x-patch
Size: 12457 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230217/60928aea/attachment.bin>


More information about the llvm-commits mailing list