[llvm] [CostModel][AArch64] Make extractelement, with fmul user, free whenev… (PR #111479)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 9 09:54:00 PDT 2024
================
@@ -1277,12 +1277,21 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
return 1;
}
- InstructionCost getVectorInstrCost(unsigned Opcode, Type *Val,
- TTI::TargetCostKind CostKind,
- unsigned Index, Value *Op0, Value *Op1) {
+ virtual InstructionCost getVectorInstrCost(unsigned Opcode, Type *Val,
+ TTI::TargetCostKind CostKind,
+ unsigned Index, Value *Op0,
+ Value *Op1) {
return getRegUsageForType(Val->getScalarType());
}
+ InstructionCost getVectorInstrCost(
+ unsigned Opcode, Type *Val, TTI::TargetCostKind CostKind, unsigned Index,
+ Value *Scalar,
+ const ArrayRef<std::tuple<Value *, User *, int>> ScalarUserAndIdx
+ ) {
----------------
alexey-bataev wrote:
formatting?
https://github.com/llvm/llvm-project/pull/111479
More information about the llvm-commits
mailing list