File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
llvm/include/llvm/CodeGen Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1695,6 +1695,7 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
1695
1695
std::optional<unsigned > FOp =
1696
1696
VPIntrinsic::getFunctionalOpcodeForVP (ICA.getID ());
1697
1697
if (FOp) {
1698
+ // TODO: Support other kinds of Intrinsics (i.e. reductions)
1698
1699
if (ICA.getID () == Intrinsic::vp_load) {
1699
1700
Align Alignment = isa_and_nonnull<VPIntrinsic>(ICA.getInst ())
1700
1701
? cast<VPIntrinsic>(ICA.getInst ())
@@ -1721,10 +1722,10 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
1721
1722
: 0 ;
1722
1723
return thisT ()->getMemoryOpCost (*FOp, Args[0 ]->getType (), Alignment,
1723
1724
AS, CostKind);
1725
+ } else if (VPBinOpIntrinsic::isVPBinOp (ICA.getID ())) {
1726
+ return thisT ()->getArithmeticInstrCost (*FOp, ICA.getReturnType (),
1727
+ CostKind);
1724
1728
}
1725
- // TODO: Support other kinds of Intrinsics (i.e. reductions)
1726
- return thisT ()->getArithmeticInstrCost (*FOp, ICA.getReturnType (),
1727
- CostKind);
1728
1729
}
1729
1730
1730
1731
std::optional<Intrinsic::ID> FID =
You can’t perform that action at this time.
0 commit comments