From 3e9b3eb91deae79c4ac73ee6dfcab19af8a3ebe9 Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Mon, 31 Jul 2017 14:19:32 +0000 Subject: [Cost] Rename getReductionCost() to getArithmeticReductionCost(), NFC. llvm-svn: 309563 --- llvm/lib/Analysis/CostModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Analysis/CostModel.cpp') 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); -- cgit v1.2.3