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) {
53915391 ScalarCostsVF.insert (ScalarCosts.begin (), ScalarCosts.end ());
53925392 // Check if we decided to scalarize a call. If so, update the widening
53935393 // 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) {
53955395 auto *CI = dyn_cast<CallInst>(I);
53965396 if (!CI || !CallWideningDecisions.contains ({CI, VF}))
53975397 continue ;
53985398 CallWideningDecisions[{CI, VF}].Kind = CM_Scalarize;
5399- CallWideningDecisions[{CI, VF}].Cost = ScalarCosts[CI] ;
5399+ CallWideningDecisions[{CI, VF}].Cost = Cost ;
54005400 }
54015401 }
54025402 // Remember that BB will remain after vectorization.
You can’t perform that action at this time.
0 commit comments