File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1795,6 +1795,7 @@ InstructionCost ARMTTIImpl::getExtendedReductionCost(
1795
1795
case ISD::ADD:
1796
1796
if (ST->hasMVEIntegerOps () && ValVT.isSimple () && ResVT.isSimple ()) {
1797
1797
std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost (ValTy);
1798
+
1798
1799
// The legal cases are:
1799
1800
// VADDV u/s 8/16/32
1800
1801
// VADDLV u/s 32
@@ -1806,7 +1807,7 @@ InstructionCost ARMTTIImpl::getExtendedReductionCost(
1806
1807
((LT.second == MVT::v16i8 && RevVTSize <= 32 ) ||
1807
1808
(LT.second == MVT::v8i16 && RevVTSize <= 32 ) ||
1808
1809
(LT.second == MVT::v4i32 && RevVTSize <= 64 )))
1809
- return ST->getMVEVectorCostFactor (CostKind) * LT.first ;
1810
+ return 3 * ST->getMVEVectorCostFactor (CostKind) * LT.first ;
1810
1811
}
1811
1812
break ;
1812
1813
default :
You can’t perform that action at this time.
0 commit comments