[PATCH] D141275: [AArch64] Sink to umull if we know tops bits are zero.

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 9 04:14:19 PST 2023


dmgreen created this revision.
dmgreen added reviewers: bipmis, samtebbs, SjoerdMeijer, fhahn, NickGuy.
Herald added subscribers: StephenFan, hiraditya, kristof.beyls.
Herald added a project: All.
dmgreen requested review of this revision.
Herald added a project: LLVM.

This is an extension to the code for sinking splats to multiplies, where if we can detect that the top bits are known-zero we can treat the instruction like a zext. The existing code was also adjusted in the process to make it more precise about only sink if both operands are zext or sext.


https://reviews.llvm.org/D141275

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/aarch64-matrix-umull-smull.ll
  llvm/test/CodeGen/AArch64/sve-loopforms.ll
  llvm/test/Transforms/CodeGenPrepare/AArch64/sink-free-instructions.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141275.487373.patch
Type: text/x-patch
Size: 24845 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230109/c057cde4/attachment.bin>


More information about the llvm-commits mailing list