[PATCH] D136083: [AArch64][SVE] Use more flag-setting instructions

Cullen Rhodes via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 17 07:38:25 PDT 2022


c-rhodes created this revision.
c-rhodes added reviewers: bsmith, peterwaller-arm, MattDevereau, dtemirbulatov.
Herald added subscribers: psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
Herald added a project: All.
c-rhodes requested review of this revision.
Herald added a project: LLVM.

If OP in PTEST(PG, OP(PG, ...)) has a flag-setting variant change the
opcode so the PTEST becomes redundant. This patch extends this existing
optimization in AArch64::optimizePTestInstr to cover all flag-setting
opcodes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136083

Files:
  llvm/lib/Target/AArch64/AArch64CondBrTuning.cpp
  llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
  llvm/lib/Target/AArch64/AArch64InstrInfo.h
  llvm/test/CodeGen/AArch64/sve-int-pred-reduce.ll
  llvm/test/CodeGen/AArch64/sve-ptest-removal-brk.ll
  llvm/test/CodeGen/AArch64/sve-ptest-removal-log.ll
  llvm/test/CodeGen/AArch64/sve-ptest-removal-ptrue.ll
  llvm/test/CodeGen/AArch64/sve-split-int-pred-reduce.ll
  llvm/test/CodeGen/AArch64/sve-vecreduce-fold.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136083.468197.patch
Type: text/x-patch
Size: 21657 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221017/9dad3052/attachment.bin>


More information about the llvm-commits mailing list