[PATCH] D101062: [AArch64][SVE] Better utilisation of immediate forms for bitwise intrinsics

Bradley Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 22 06:50:16 PDT 2021


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

When using a predicated bitwise intrinsic with an immediate operand, if the
predicate used is all lanes active, use a unpredicated immediate form of
the instruction.

This also includes a new complex isel pattern which allows matching an
all active predicate when the types are different but the predicate is a
superset of the type being used. For example, to allow a b8 ptrue for a
b32 predicate operand.

Co-authored-by: Paul Walker <paul.walker at arm.com>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101062

Files:
  llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
  llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
  llvm/lib/Target/AArch64/SVEInstrFormats.td
  llvm/test/CodeGen/AArch64/sve-intrinsics-logical-imm.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101062.339610.patch
Type: text/x-patch
Size: 20366 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210422/a1bebdac/attachment.bin>


More information about the llvm-commits mailing list