[all-commits] [llvm/llvm-project] 79660d: [LoopVectorize][AArch64] Add TTI hook preferPredic...

david-arm via All-commits all-commits at lists.llvm.org
Wed Jul 20 01:33:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 79660d339e67248ad2c224bf85243b12644cbd0e
      https://github.com/llvm/llvm-project/commit/79660d339e67248ad2c224bf85243b12644cbd0e
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2022-07-20 (Wed, 20 Jul 2022)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
    M llvm/test/Transforms/LoopVectorize/AArch64/sve-tail-folding-reductions.ll

  Log Message:
  -----------
  [LoopVectorize][AArch64] Add TTI hook preferPredicatedReductionSelect

By default if SVE is enabled we want the select instruction used for
reductions to be inside the loop, rather than outside. This makes it
possible for the backend to fold the select into the operation to
produce a single predicated add, fadd, etc.

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




More information about the All-commits mailing list