We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60199ee commit 2fc08d4Copy full SHA for 2fc08d4
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -5415,7 +5415,7 @@ void LoopVectorizationCostModel::collectInstsToScalarize(ElementCount VF) {
5415
if (!isScalarAfterVectorization(&I, VF) && !VF.isScalable() &&
5416
!useEmulatedMaskMemRefHack(&I, VF) &&
5417
computePredInstDiscount(&I, ScalarCosts, VF) >= 0) {
5418
- ScalarCostsVF.insert(ScalarCosts.begin(), ScalarCosts.end());
+ ScalarCostsVF.insert_range(ScalarCosts);
5419
// Check if we decided to scalarize a call. If so, update the widening
5420
// decision of the call to CM_Scalarize with the computed scalar cost.
5421
for (const auto &[I, Cost] : ScalarCosts) {
0 commit comments