[PATCH] D129282: [AArch64][SVE] Ensure PTEST operands have type nxv16i1

Rosie Sumpter via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 7 06:10:50 PDT 2022


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

Currently any legal predicate types will be pattern-matched when
creating a PTEST instruction. This could be a problem in future since
PTEST always uses the .B specifier for the operand, but it is not
always guaranteed that the extra lanes of unpacked types (e.g. nxv4i1)
are zero. This patch ensures the operands of PTEST are type nxv16i1,
where the undef lanes are set to zero.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129282

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129282.442877.patch
Type: text/x-patch
Size: 7783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220707/c1f3e5d7/attachment.bin>


More information about the llvm-commits mailing list