[all-commits] [llvm/llvm-project] ac8290: [AArch64][SVE] Ensure redundant PTEST are removed ...

Bradley Smith via All-commits all-commits at lists.llvm.org
Thu Nov 17 07:42:40 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ac82907a1cb864627243af3e49e5fb782e0b7792
      https://github.com/llvm/llvm-project/commit/ac82907a1cb864627243af3e49e5fb782e0b7792
  Author: Bradley Smith <bradley.smith at arm.com>
  Date:   2022-11-17 (Thu, 17 Nov 2022)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
    M llvm/test/CodeGen/AArch64/sve-ptest-removal-cmple.ll

  Log Message:
  -----------
  [AArch64][SVE] Ensure redundant PTEST are removed with an 'invalid' PTRUE

When a PTRUE of non-element size is encountered, the PTEST optimization
logic bails out since it cannot handle that type of PTRUE. Instead, it
should be treated as a generic predicate to allow later optimizations trigger.

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




More information about the All-commits mailing list