diff options
| author | Florian Hahn <flo@fhahn.com> | 2019-07-15 08:48:47 +0000 |
|---|---|---|
| committer | Florian Hahn <flo@fhahn.com> | 2019-07-15 08:48:47 +0000 |
| commit | 1d554b7441258c8074c912c674f51b1b17625a38 (patch) | |
| tree | 17d5e77e0faff09c06c343d14dbd35afd14ac797 /llvm/lib/Transforms/Vectorize | |
| parent | 3ed93b4673b98dc58af0d25c4ab33fd2bcf8fca1 (diff) | |
| download | bcm5719-llvm-1d554b7441258c8074c912c674f51b1b17625a38.tar.gz bcm5719-llvm-1d554b7441258c8074c912c674f51b1b17625a38.zip | |
[LoopVectorize] Pass unfiltered list of arguments to getIntrinsicInstCost.
We do not compute the scalarization overhead in getVectorIntrinsicCost
and TTI::getIntrinsicInstrCost requires the full arguments list.
llvm-svn: 366049
Diffstat (limited to 'llvm/lib/Transforms/Vectorize')
| -rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 22cf9c7db94..46265e3f3e1 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -3149,11 +3149,8 @@ unsigned LoopVectorizationCostModel::getVectorIntrinsicCost(CallInst *CI, if (auto *FPMO = dyn_cast<FPMathOperator>(CI)) FMF = FPMO->getFastMathFlags(); - // Skip operands that do not require extraction/scalarization and do not incur - // any overhead. - return TTI.getIntrinsicInstrCost( - ID, CI->getType(), filterExtractingOperands(CI->arg_operands(), VF), FMF, - VF); + SmallVector<Value *, 4> Operands(CI->arg_operands()); + return TTI.getIntrinsicInstrCost(ID, CI->getType(), Operands, FMF, VF); } static Type *smallestIntegerVectorType(Type *T1, Type *T2) { |

