[PATCH] D131197: [TTI] Change new getVectorInstrCost overload to use const reference after D131114

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 4 13:26:14 PDT 2022


MaskRay created this revision.
MaskRay added reviewers: davidxl, mingmingl.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
MaskRay requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

A const reference is preferred over a non-null const pointer.
`Type *` is kept as is to match the other overload.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131197

Files:
  llvm/include/llvm/Analysis/TargetTransformInfo.h
  llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
  llvm/include/llvm/CodeGen/BasicTTIImpl.h
  llvm/lib/Analysis/TargetTransformInfo.cpp
  llvm/lib/CodeGen/CodeGenPrepare.cpp
  llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
  llvm/lib/Transforms/Vectorize/VectorCombine.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131197.450119.patch
Type: text/x-patch
Size: 8803 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220804/82d1a8c2/attachment.bin>


More information about the llvm-commits mailing list