[PATCH] D120891: [AArch64] Perform first active true vector combine

Allen zhong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 3 04:17:37 PST 2022


Allen created this revision.
Herald added subscribers: ctetreau, hiraditya, kristof.beyls.
Herald added a project: All.
Allen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Materialize : i1 = extract_vector_elt t37, Constant:i64<0>

  ... into: "ptrue p, all" + PTEST

Test bit of lane 0 can use P register directly, and the instruction “pture all”
is loop invariant, which will beneficial to SVE after hoisting out the loop.


https://reviews.llvm.org/D120891

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/sve-extract-element.ll
  llvm/test/CodeGen/AArch64/sve-pture.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120891.412670.patch
Type: text/x-patch
Size: 6104 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220303/68f01033/attachment.bin>


More information about the llvm-commits mailing list