[all-commits] [llvm/llvm-project] 5621ca: [AArch64][SVE] NFC: extend tests for flag-setting ...

Cullen Rhodes via All-commits all-commits at lists.llvm.org
Tue Oct 25 02:02:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5621caeb8248a66c7d52b8148426530a0b559d86
      https://github.com/llvm/llvm-project/commit/5621caeb8248a66c7d52b8148426530a0b559d86
  Author: Cullen Rhodes <cullen.rhodes at arm.com>
  Date:   2022-10-25 (Tue, 25 Oct 2022)

  Changed paths:
    M llvm/test/CodeGen/AArch64/sve-ptest-removal-brk.ll
    A llvm/test/CodeGen/AArch64/sve-ptest-removal-log.ll
    A llvm/test/CodeGen/AArch64/sve-ptest-removal-ptrue.ll

  Log Message:
  -----------
  [AArch64][SVE] NFC: extend tests for flag-setting predicate instructions

A follow on patch will extend existing

  PTEST(PG, OP(PG, ...)) -> OP_FLAG_SETTING(PG, ...)

optimization in AArch64InstrInfo::optimizePTestInstr to cover more of
the flag-setting instructions

Reviewed By: peterwaller-arm

Differential Revision: https://reviews.llvm.org/D136161


  Commit: 1e02a29e4753ef70d7ce0ad90b7e4f29f1223006
      https://github.com/llvm/llvm-project/commit/1e02a29e4753ef70d7ce0ad90b7e4f29f1223006
  Author: Cullen Rhodes <cullen.rhodes at arm.com>
  Date:   2022-10-25 (Tue, 25 Oct 2022)

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

  Log Message:
  -----------
  [AArch64][SVE] Use more flag-setting instructions

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.

Reviewed By: peterwaller-arm

Differential Revision: https://reviews.llvm.org/D136083


Compare: https://github.com/llvm/llvm-project/compare/1f23cf4e5038...1e02a29e4753


More information about the All-commits mailing list