[PATCH] D145551: [SVE] Add patterns for shift intrinsics with FalseLanesZero mode

lizhijin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 8 00:12:34 PST 2023


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

This patch adds patterns to reduce redundant mov and sel instructions
for shift intrinsics with FalseLanesZero mode, when
FeatureExperimentalZeroingPseudosis supported.

      

For example, before:

  mov     z1.b, #0
  sel     z0.b, p0, z0.b, z1.b
  asr     z0.b, p0/m, z0.b, #7

After:

  movprfx z0.b, p0/z, z0.b
  asr     z0.b, p0/m, z0.b, #7


https://reviews.llvm.org/D145551

Files:
  llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
  llvm/lib/Target/AArch64/SVEInstrFormats.td
  llvm/test/CodeGen/AArch64/sve-intrinsics-int-arith-imm-zero.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145551.503249.patch
Type: text/x-patch
Size: 13150 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230308/36690818/attachment.bin>


More information about the llvm-commits mailing list