@@ -121,7 +121,7 @@ void LoopTiling::getTileSizes(ArrayRef<AffineForOp> band,
121121 // If the cache size is zero, set the minimum valid tile size. No good reason
122122 // to pick another specific size over this.
123123 if (cacheSizeInKiB == 0 ) {
124- std ::fill (tileSizes-> begin (), tileSizes-> end () , 1 );
124+ llvm ::fill (* tileSizes, 1 );
125125 return ;
126126 }
127127
@@ -136,8 +136,7 @@ void LoopTiling::getTileSizes(ArrayRef<AffineForOp> band,
136136 std::optional<int64_t > fp = getMemoryFootprintBytes (band[0 ], 0 );
137137 if (!fp) {
138138 // Fill with default tile sizes if footprint is unknown.
139- std::fill (tileSizes->begin (), tileSizes->end (),
140- LoopTiling::kDefaultTileSize );
139+ llvm::fill (*tileSizes, LoopTiling::kDefaultTileSize );
141140 if (avoidMaxMinBounds)
142141 adjustToDivisorsOfTripCounts (band, tileSizes);
143142 LLVM_DEBUG (
@@ -151,7 +150,7 @@ void LoopTiling::getTileSizes(ArrayRef<AffineForOp> band,
151150 uint64_t excessFactor = llvm::divideCeil (*fp, cacheSizeBytes);
152151 if (excessFactor <= 1 ) {
153152 // No need of any tiling - set tile size to 1.
154- std ::fill (tileSizes-> begin (), tileSizes-> end () , 1 );
153+ llvm ::fill (* tileSizes, 1 );
155154 return ;
156155 }
157156
0 commit comments