[PATCH] D99230: [GlobalISel] Combine G_SEXT_INREG + right shift -> G_SBFX

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 23 17:18:17 PDT 2021


paquette created this revision.
paquette added reviewers: aemerson, arsenm.
Herald added subscribers: hiraditya, rovka.
paquette requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

Only handling the constant case right now, and no handling for truncs.

This is only done post-legalization for now. Once the legalizer knows how to decompose these back into shifts, this requirement can probably be removed.


https://reviews.llvm.org/D99230

Files:
  llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
  llvm/include/llvm/Target/GlobalISel/Combine.td
  llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
  llvm/lib/Target/AArch64/AArch64Combine.td
  llvm/test/CodeGen/AArch64/GlobalISel/form-bitfield-extract.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99230.332831.patch
Type: text/x-patch
Size: 11731 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210324/180f686e/attachment.bin>


More information about the llvm-commits mailing list