[PATCH] D135157: [AArch64][GlobalISel] Make vector G_SEXT_INREG legal and allow combining.

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 4 07:17:52 PDT 2022


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

As a result of making these legal, and tweaking the combine to allow vectors,
we generate vector G_SEXT_INREG during legalization.

The reason we want to make these legal in the first place is to allow for
more combine opportunities. Once those have been done, we can just lower them
back to shifts in the post-legalizer lowering.

This needs to be one commit otherwise we start causing tests to fail due to
incomplete support for selection etc.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135157

Files:
  llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
  llvm/lib/Target/AArch64/AArch64Combine.td
  llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
  llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerLowering.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/legalize-itofp.mir
  llvm/test/CodeGen/AArch64/GlobalISel/legalize-min-max.mir
  llvm/test/CodeGen/AArch64/GlobalISel/legalize-select.mir
  llvm/test/CodeGen/AArch64/GlobalISel/legalize-sext.mir
  llvm/test/CodeGen/AArch64/GlobalISel/postlegalizer-lowering-sextinreg.mir
  llvm/test/CodeGen/AArch64/GlobalISel/prelegalizercombiner-ashr-shl-to-sext-inreg.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135157.465001.patch
Type: text/x-patch
Size: 36201 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221004/f32adf37/attachment.bin>


More information about the llvm-commits mailing list