Skip to content

Commit 2fc08d4

Browse files
[Vectorize] Use DenseMap::insert_range (NFC) (#133656)
1 parent 60199ee commit 2fc08d4

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
@@ -5415,7 +5415,7 @@ void LoopVectorizationCostModel::collectInstsToScalarize(ElementCount VF) {
54155415
if (!isScalarAfterVectorization(&I, VF) && !VF.isScalable() &&
54165416
!useEmulatedMaskMemRefHack(&I, VF) &&
54175417
computePredInstDiscount(&I, ScalarCosts, VF) >= 0) {
5418-
ScalarCostsVF.insert(ScalarCosts.begin(), ScalarCosts.end());
5418+
ScalarCostsVF.insert_range(ScalarCosts);
54195419
// Check if we decided to scalarize a call. If so, update the widening
54205420
// decision of the call to CM_Scalarize with the computed scalar cost.
54215421
for (const auto &[I, Cost] : ScalarCosts) {

0 commit comments

Comments
 (0)