[PATCH] D146127: [NFC][LoopVectorize] Simplify preferPredicateOverEpilogue interface

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 15 04:38:10 PDT 2023


david-arm created this revision.
david-arm added reviewers: sdesmalen, kmclaughlin, dmgreen.
Herald added subscribers: shiva0217, hiraditya.
Herald added a project: All.
david-arm requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead.
Herald added a project: LLVM.

I discovered that many of the parameters we pass to the
preferPredicateOverEpilogue TTI interface can actually be
obtained from the LoopVectorizationLegality class, so I
decided to simplify the interface and remove these extra
arguments. This will also help with a follow-on patch that
needs to add another argument.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D146127

Files:
  llvm/include/llvm/Analysis/TargetTransformInfo.h
  llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
  llvm/include/llvm/CodeGen/BasicTTIImpl.h
  llvm/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h
  llvm/lib/Analysis/TargetTransformInfo.cpp
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
  llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
  llvm/lib/Target/ARM/ARMTargetTransformInfo.h
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146127.505438.patch
Type: text/x-patch
Size: 12869 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230315/31b4157c/attachment.bin>


More information about the llvm-commits mailing list