diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2017-07-31 14:19:32 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2017-07-31 14:19:32 +0000 |
commit | 3e9b3eb91deae79c4ac73ee6dfcab19af8a3ebe9 (patch) | |
tree | 3b2dd07ab296dfd708c8fa974de85518fa6ca6f4 /llvm/lib/Analysis/CostModel.cpp | |
parent | 5174866b1d5baf17a49635bc1db280fb8bbf57dc (diff) | |
download | bcm5719-llvm-3e9b3eb91deae79c4ac73ee6dfcab19af8a3ebe9.tar.gz bcm5719-llvm-3e9b3eb91deae79c4ac73ee6dfcab19af8a3ebe9.zip |
[Cost] Rename getReductionCost() to getArithmeticReductionCost(), NFC.
llvm-svn: 309563
Diffstat (limited to 'llvm/lib/Analysis/CostModel.cpp')
-rw-r--r-- | llvm/lib/Analysis/CostModel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/CostModel.cpp b/llvm/lib/Analysis/CostModel.cpp index 32bfea58bf9..e3fa10d40fd 100644 --- a/llvm/lib/Analysis/CostModel.cpp +++ b/llvm/lib/Analysis/CostModel.cpp @@ -496,9 +496,9 @@ unsigned CostModelAnalysis::getInstructionCost(const Instruction *I) const { Type *ReduxType; if (matchVectorSplittingReduction(EEI, ReduxOpCode, ReduxType)) - return TTI->getReductionCost(ReduxOpCode, ReduxType, false); + return TTI->getArithmeticReductionCost(ReduxOpCode, ReduxType, false); else if (matchPairwiseReduction(EEI, ReduxOpCode, ReduxType)) - return TTI->getReductionCost(ReduxOpCode, ReduxType, true); + return TTI->getArithmeticReductionCost(ReduxOpCode, ReduxType, true); return TTI->getVectorInstrCost(I->getOpcode(), EEI->getOperand(0)->getType(), Idx); |