[PATCH] D124908: Optimize new cases for lowerConvertToSVBool
Alban Bridonneau via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 4 01:23:48 PDT 2022
alban.bridonneau created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
alban.bridonneau requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Converts to SVBool are already considered as a nop, if they
are converting an operand from a ptrue or a cmp, because
they zero the extra predicate lanes by construction.
This patch adds 2 similar cases:
- The wide cmp, which were not directly recognized by the test
for other forms of cmp
- Splats of 1, which will be generated as ptrue, and as such
will also zero the extra predicate lines.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D124908
Files:
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/sve-intrinsics-reinterpret-no-streaming.ll
llvm/test/CodeGen/AArch64/sve-ptest-removal-cmpeq.ll
llvm/test/CodeGen/AArch64/sve-ptest-removal-cmpge.ll
llvm/test/CodeGen/AArch64/sve-ptest-removal-cmpgt.ll
llvm/test/CodeGen/AArch64/sve-ptest-removal-cmphi.ll
llvm/test/CodeGen/AArch64/sve-ptest-removal-cmphs.ll
llvm/test/CodeGen/AArch64/sve-ptest-removal-cmple.ll
llvm/test/CodeGen/AArch64/sve-ptest-removal-cmplo.ll
llvm/test/CodeGen/AArch64/sve-ptest-removal-cmpls.ll
llvm/test/CodeGen/AArch64/sve-ptest-removal-cmplt.ll
llvm/test/CodeGen/AArch64/sve-ptest-removal-cmpne.ll
llvm/test/CodeGen/AArch64/sve-vector-splat.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124908.426942.patch
Type: text/x-patch
Size: 30881 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220504/76e32a97/attachment.bin>
More information about the llvm-commits
mailing list