[PATCH] D119336: [AArch64][SVE] Avoid multiple PTRUE values for SETCC.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 9 06:55:59 PST 2022


sdesmalen created this revision.
sdesmalen added reviewers: efriedma, paulwalker-arm, bsmith, cameron.mcinally.
Herald added subscribers: psnobl, hiraditya, kristof.beyls, tschuett.
sdesmalen requested review of this revision.
Herald added subscribers: llvm-commits, alextsao1999.
Herald added a project: LLVM.

Conversion between fixed- and scalable vector types may sometimes
lead to multiple `PTRUE` values to be used, one 'all active' and one
for the specific fixed-width vector length.

This patch canonicalises the predicate of SETCC_MERGE_ZERO to be
the more specific of the two, when it's inputs come from a conversion
of a fixed -> scalable type.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119336

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/sve-setcc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119336.407149.patch
Type: text/x-patch
Size: 5802 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220209/90d2895d/attachment.bin>


More information about the llvm-commits mailing list