[llvm] [CostModel][AArch64] Make extractelement, with fmul user, free whenev… (PR #111479)

Sushant Gokhale via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 8 03:47:14 PDT 2024


================
@@ -11739,8 +11750,9 @@ InstructionCost BoUpSLP::getTreeCost(ArrayRef<Value *> VectorizedVals) {
       ExtraCost = TTI->getExtractWithExtendCost(Extend, EU.Scalar->getType(),
                                                 VecTy, EU.Lane);
     } else {
-      ExtraCost = TTI->getVectorInstrCost(Instruction::ExtractElement, VecTy,
-                                          CostKind, EU.Lane);
+      ExtraCost = TTI->getVectorInstrCost(
+          Instruction::ExtractElement, VecTy, CostKind, EU.Lane, nullptr,
----------------
sushgokh wrote:

SLPVectorizer has other calls to this API where Op0 and Op1 are not null

https://github.com/llvm/llvm-project/pull/111479


More information about the llvm-commits mailing list