[PATCH] D138888: [AArch64][SVE] Replace destructive operand of vector zeros with a bundled MOVPRFX instruction

Allen zhong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 28 19:41:05 PST 2022


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

Replace unary instructions where the destructive operand is a vector of zeros
with a bundled MOVPRFX instruction, e.g:

  Transform:
      %X0 = DUP_ZI_S 0, 0
      %X0 = FNEG_ZPmZ_S X0, P0, X2
   into:
       X0 = MOVPRFX P0/z, X0
       X0 = FNEG_ZPmZ_S X0, P0, X2
      

Depends on D105889 <https://reviews.llvm.org/D105889>


https://reviews.llvm.org/D138888

Files:
  llvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
  llvm/test/CodeGen/AArch64/sve2-intrinsics-fp-int-binary-logarithm-zeroing.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138888.478442.patch
Type: text/x-patch
Size: 8233 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221129/3a134d1f/attachment.bin>


More information about the llvm-commits mailing list