diff --git a/llvm/include/llvm/Analysis/TargetTransformInfo.h b/llvm/include/llvm/Analysis/TargetTransformInfo.h index eb0e0270157f..6ddea8bbdce0 100644 --- a/llvm/include/llvm/Analysis/TargetTransformInfo.h +++ b/llvm/include/llvm/Analysis/TargetTransformInfo.h @@ -744,9 +744,9 @@ public: /// and the number of execution units in the CPU. unsigned getMaxInterleaveFactor(unsigned VF) const; - /// Collect properties of V used in cost analyzis, e.g. OP_PowerOf2. - OperandValueKind getOperandInfo(Value *V, - OperandValueProperties &OpProps) const; + /// Collect properties of V used in cost analysis, e.g. OP_PowerOf2. + static OperandValueKind getOperandInfo(Value *V, + OperandValueProperties &OpProps); /// This is an approximation of reciprocal throughput of a math/logic op. /// A higher cost indicates less expected throughput. diff --git a/llvm/lib/Analysis/TargetTransformInfo.cpp b/llvm/lib/Analysis/TargetTransformInfo.cpp index eecc898fb5fd..25ebcdec3be8 100644 --- a/llvm/lib/Analysis/TargetTransformInfo.cpp +++ b/llvm/lib/Analysis/TargetTransformInfo.cpp @@ -389,8 +389,7 @@ unsigned TargetTransformInfo::getMaxInterleaveFactor(unsigned VF) const { } TargetTransformInfo::OperandValueKind -TargetTransformInfo::getOperandInfo(Value *V, - OperandValueProperties &OpProps) const { +TargetTransformInfo::getOperandInfo(Value *V, OperandValueProperties &OpProps) { OperandValueKind OpInfo = OK_AnyValue; OpProps = OP_None;