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