[PATCH] D97303: [AArch64] Use CMTST for != 0 vector compares (vnot (CMEQz A)).
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 23 09:15:04 PST 2021
fhahn created this revision.
fhahn added reviewers: dmgreen, SjoerdMeijer, aemerson, paquette.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
fhahn requested review of this revision.
Herald added a project: LLVM.
(CMTST A, A) will only set elements to 0 if the element is 0 in A. Use
it for != 0 compares, which currently use (vnot (CMEQz A)). This saves a
mvn instruction.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D97303
Files:
llvm/lib/Target/AArch64/AArch64InstrInfo.td
llvm/test/CodeGen/AArch64/neon-compare-instructions.ll
llvm/test/CodeGen/AArch64/vec_umulo.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97303.325811.patch
Type: text/x-patch
Size: 9022 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210223/f5caadc6/attachment.bin>
More information about the llvm-commits
mailing list