[llvm] Fix buildbot failure by explicitly disabling partial reductions in TTI. (PR #190165)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 2 07:11:24 PDT 2026
================
@@ -157,6 +157,15 @@ class VETTIImpl final : public BasicTTIImplBase<VETTIImpl> {
return true;
return !isSupportedReduction(II->getIntrinsicID());
}
+
+ InstructionCost getPartialReductionCost(
+ unsigned Opcode, Type *InputTypeA, Type *InputTypeB, Type *AccumType,
+ ElementCount VF, TTI::PartialReductionExtendKind OpAExtend,
+ TTI::PartialReductionExtendKind OpBExtend, std::optional<unsigned> BinOp,
+ TTI::TargetCostKind CostKind,
----------------
MacDue wrote:
I think you need to add `using TTI = TargetTransformInfo;` to `VETTIImpl` or spell `TargetTransformInfo` out here to fix the build issues:
```suggestion
TargetTransformInfo::PartialReductionExtendKind OpBExtend, std::optional<unsigned> BinOp,
TargetTransformInfo::TargetCostKind CostKind,
```
https://github.com/llvm/llvm-project/pull/190165
More information about the llvm-commits
mailing list