[llvm] [CostModel][AArch64] Make extractelement, with fmul user, free whenev… (PR #111479)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 8 01:24:07 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,
----------------
david-arm wrote:
To be honest I'm a bit confused by the interface here. It seems like the only use case for this function is when the Op0 and Op1 arguments are both nullptr. So why not just remove these two arguments from the interface?
https://github.com/llvm/llvm-project/pull/111479
More information about the llvm-commits
mailing list