[llvm] [AArch64] SLP can vectorize frem (PR #82488)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 21 06:02:21 PST 2024
================
@@ -8362,9 +8362,20 @@ BoUpSLP::getEntryCost(const TreeEntry *E, ArrayRef<Value *> VectorizedVals,
unsigned OpIdx = isa<UnaryOperator>(VL0) ? 0 : 1;
TTI::OperandValueInfo Op1Info = getOperandInfo(E->getOperand(0));
TTI::OperandValueInfo Op2Info = getOperandInfo(E->getOperand(OpIdx));
- return TTI->getArithmeticInstrCost(ShuffleOrOp, VecTy, CostKind, Op1Info,
- Op2Info) +
- CommonCost;
+ auto VecCost = TTI->getArithmeticInstrCost(ShuffleOrOp, VecTy, CostKind,
----------------
alexey-bataev wrote:
Do not use auto
https://github.com/llvm/llvm-project/pull/82488
More information about the llvm-commits
mailing list