[PATCH] D138424: [TargetLowering][AArch64] Teach DemandedBits about VSCALE and SVE CNTx

Benjamin Maxwell via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 21 05:52:52 PST 2022


benmxwl-arm created this revision.
benmxwl-arm added reviewers: c-rhodes, peterwaller-arm, dtemirbulatov, MattDevereau.
Herald added subscribers: ctetreau, hiraditya, kristof.beyls, tschuett.
Herald added a project: All.
benmxwl-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This now allows DemandedBits to see vscale will be a rather small value
(at most 16 on AArch64) multiplied by some constant. Likewise for the
AArch64 specific SVE count intrinsics. With this various redundant
operations (ands, zexts, sexts, etc) can be eliminated.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138424

Files:
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/vscale-and-sve-cnt-demandedbits.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138424.476870.patch
Type: text/x-patch
Size: 9828 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221121/82c04f33/attachment-0001.bin>


More information about the llvm-commits mailing list