File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5391,12 +5391,12 @@ void LoopVectorizationCostModel::collectInstsToScalarize(ElementCount VF) {
5391
5391
ScalarCostsVF.insert (ScalarCosts.begin (), ScalarCosts.end ());
5392
5392
// Check if we decided to scalarize a call. If so, update the widening
5393
5393
// decision of the call to CM_Scalarize with the computed scalar cost.
5394
- for (const auto &[I, _ ] : ScalarCosts) {
5394
+ for (const auto &[I, Cost ] : ScalarCosts) {
5395
5395
auto *CI = dyn_cast<CallInst>(I);
5396
5396
if (!CI || !CallWideningDecisions.contains ({CI, VF}))
5397
5397
continue ;
5398
5398
CallWideningDecisions[{CI, VF}].Kind = CM_Scalarize;
5399
- CallWideningDecisions[{CI, VF}].Cost = ScalarCosts[CI] ;
5399
+ CallWideningDecisions[{CI, VF}].Cost = Cost ;
5400
5400
}
5401
5401
}
5402
5402
// Remember that BB will remain after vectorization.
You can’t perform that action at this time.
0 commit comments