[PATCH] D52883: [LoopVectorizer] use TTI.getOperandInfo()

Jonas Paulsson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 4 05:22:44 PDT 2018


jonpa created this revision.
jonpa added reviewers: fhahn, hfinkel.

Call getOperandInfo() instead of using (near) duplicated code in LoopVectorizationCostModel::getInstructionCost().

This gets the OperandValueKind and OperandValueProperties values for a Value passed as operand to an arithmetic instruction.

getOperandInfo() used to be a static method in TargetTransformInfo.cpp, but is now instead a public member. The method definition has been moved in the .cpp file to above getArithmeticInstrCost(), from the area of the static functions.


https://reviews.llvm.org/D52883

Files:
  include/llvm/Analysis/TargetTransformInfo.h
  lib/Analysis/TargetTransformInfo.cpp
  lib/Transforms/Vectorize/LoopVectorize.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52883.168271.patch
Type: text/x-patch
Size: 6612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181004/66fe424f/attachment.bin>


More information about the llvm-commits mailing list