[PATCH] D129852: [AArch64][SVE] Sink op into loop if it's used by PTEST and known to zero inactive lanes.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 15 06:10:35 PDT 2022


sdesmalen created this revision.
sdesmalen added reviewers: RosieSumpter, paulwalker-arm, david-arm.
Herald added subscribers: psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
Herald added a project: All.
sdesmalen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This helps fold away the ptest instructions, which needs the knowledge on whether
the general predicate is known to zero the inactive lanes.

This fixes some PTEST regressions introduced by D129282 <https://reviews.llvm.org/D129282>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129852

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/sve-ptest-removal-sink.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129852.444958.patch
Type: text/x-patch
Size: 5492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220715/12d9c1d9/attachment.bin>


More information about the llvm-commits mailing list