File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
mlir/lib/Dialect/Linalg/Transforms Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ struct VectorizationState {
287
287
// / moment we only make sure that there are no broadcast dimensions, but this
288
288
// / might change if indexing maps evolve.
289
289
bool isValidMaskingMap (AffineMap maskingMap) {
290
- return maskingMap.getBroadcastDims ().size () == 0 ;
290
+ return maskingMap.getBroadcastDims ().empty () ;
291
291
}
292
292
293
293
// / Turn the input indexing map into a valid masking map.
@@ -923,7 +923,7 @@ static uint64_t getTrailingNonUnitLoopDimIdx(LinalgOp linalgOp) {
923
923
llvm::count_if (loopRanges, [](int64_t dim) { return dim != 1 ; }) == 1 ) &&
924
924
" For statically shaped Linalg Ops, only one "
925
925
" non-unit loop dim is expected" );
926
- assert (loopRanges.size () != 0 && " Empty loops, nothing to analyse." );
926
+ assert (! loopRanges.empty () && " Empty loops, nothing to analyse." );
927
927
928
928
size_t idx = loopRanges.size () - 1 ;
929
929
for (; idx != 0 ; idx--)
You can’t perform that action at this time.
0 commit comments