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 @@ -3084,7 +3084,7 @@ void LoopVectorizationCostModel::collectLoopScalars(ElementCount VF) {
3084
3084
// since that would result in generation of scalarized code during execution,
3085
3085
// which is not supported for scalable vectors.
3086
3086
if (VF.isScalable ()) {
3087
- Scalars[VF].insert (Uniforms[VF]. begin (), Uniforms[VF]. end () );
3087
+ Scalars[VF].insert_range (Uniforms[VF]);
3088
3088
return ;
3089
3089
}
3090
3090
@@ -3151,7 +3151,7 @@ void LoopVectorizationCostModel::collectLoopScalars(ElementCount VF) {
3151
3151
//
3152
3152
// (1) Add to the worklist all instructions that have been identified as
3153
3153
// uniform-after-vectorization.
3154
- Worklist.insert (Uniforms[VF]. begin (), Uniforms[VF]. end () );
3154
+ Worklist.insert_range (Uniforms[VF]);
3155
3155
3156
3156
// (2) Add to the worklist all bitcast and getelementptr instructions used by
3157
3157
// memory accesses requiring a scalar use. The pointer operands of loads and
You can’t perform that action at this time.
0 commit comments