Skip to content

Commit 8e6b044

Browse files
committed
[LV] Use try_emplace
1 parent 0e814c2 commit 8e6b044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8130,7 +8130,7 @@ void VPRecipeBuilder::collectScaledReductions(VFRange &Range) {
81308130
PartialReductionChain Chain = Pair.first;
81318131
if (ExtendIsOnlyUsedByPartialReductions(Chain.ExtendA) &&
81328132
ExtendIsOnlyUsedByPartialReductions(Chain.ExtendB))
8133-
ScaledReductionMap.emplace_or_assign(Chain.Reduction, Pair.second);
8133+
ScaledReductionMap.try_emplace(Chain.Reduction, Pair.second);
81348134
}
81358135
}
81368136

0 commit comments

Comments
 (0)