[all-commits] [llvm/llvm-project] be26e6: [AArch64][SVE] Remove redundant PTEST following PN...

Peter Waller via All-commits all-commits at lists.llvm.org
Tue Oct 5 08:13:57 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: be26e6ff737d89827f0eb5678cbc88aae2068348
      https://github.com/llvm/llvm-project/commit/be26e6ff737d89827f0eb5678cbc88aae2068348
  Author: Peter Waller <peter.waller at arm.com>
  Date:   2021-10-05 (Tue, 05 Oct 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/SVEInstrFormats.td
    A llvm/test/CodeGen/AArch64/sve-ptest-removal-pfirst-pnext.ll

  Log Message:
  -----------
  [AArch64][SVE] Remove redundant PTEST following PNEXT/PFIRST

PNEXT and PFIRST set the NZCV flags, so the subsequent PTEST can be
optimized away in AArch64InstrInfo::optimizePTestInstr.

See-also: https://reviews.llvm.org/D93292

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




More information about the All-commits mailing list