[PATCH] D134711: [AArch64] Select SMULL for zero extended vectors when top bit is zero

Zain Jaffal via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 27 00:55:39 PDT 2022


zjaffal created this revision.
zjaffal added reviewers: fhahn, t.p.northover, spatel, dmgreen.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
zjaffal requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

we can safely replace a `zext` instruction with `sext` if the top bit is zero. This is useful because we can select `smull` when both operands are sign extended.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134711

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/aarch64-smull.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134711.463130.patch
Type: text/x-patch
Size: 4888 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220927/86304e8b/attachment.bin>


More information about the llvm-commits mailing list