@@ -479,8 +479,8 @@ tileAndFuseProducerOfOpOperand(RewriterBase &rewriter, OpOperand &operand,
479479 return std::nullopt ;
480480
481481 // c. Check the producer of root source if is tilable.
482- Operation *producer = realProducer->getDefiningOp <TilingInterface>();
483- if (!producer )
482+ Operation *producerOp = realProducer->getDefiningOp <TilingInterface>();
483+ if (!producerOp )
484484 return std::nullopt ;
485485
486486 CandidateDefOrUse defOrUse{*realProducer};
@@ -537,8 +537,8 @@ tileAndFuseConsumerOfOpResult(RewriterBase &rewriter, OpResult result,
537537 SmallVector<scf::SCFFuseConsumerOfSliceResult> fusedResultList;
538538 for (auto useOperand : *realConsumers) {
539539 // c. Check the consumer of top level result if is tilable.
540- Operation *consumer = dyn_cast<TilingInterface>(useOperand->getOwner ());
541- if (!consumer )
540+ Operation *consumerOp = dyn_cast<TilingInterface>(useOperand->getOwner ());
541+ if (!consumerOp )
542542 continue ;
543543
544544 CandidateDefOrUse defOrUse{useOperand};
@@ -560,7 +560,7 @@ tileAndFuseConsumerOfOpResult(RewriterBase &rewriter, OpResult result,
560560 // f. Manually run cse on region which contains original consumer op in
561561 // avoid of conflict with subsequent `tileAndFuseConsumerOfSlice` get nest
562562 // loops between next candidate sliceOp and tiled producer.
563- (void )mlir::simplifyRegions (rewriter, {*consumer ->getParentRegion ()});
563+ (void )mlir::simplifyRegions (rewriter, {*consumerOp ->getParentRegion ()});
564564 }
565565 }
566566 if (fusedResultList.empty ())
@@ -652,7 +652,7 @@ struct defaultTileConfig {
652652 // OpTy-to-TileSize mapping
653653 OpTileSizeMap tsMap;
654654 // ND-tile size
655- int ndTile;
655+ unsigned ndTile;
656656};
657657
658658// / Default Tiling function only effective for certain `OpTy` operation
@@ -690,7 +690,7 @@ defaultTilingOfType(RewriterBase &rewriter, Operation *op,
690690 SmallVector<int64_t > tsOrder = {32 , 16 };
691691 // Record how many dims have been tiled, including fully tiled, i.e.
692692 // tileSize == dimSize.
693- int nonOneTileDims =
693+ unsigned nonOneTileDims =
694694 (isa<mlir::linalg::LinalgOp>(op) && !linalgx::isMatmulOp (op))
695695 ? cast<mlir::linalg::LinalgOp>(op).getNumReductionLoops ()
696696 : 0 ;
0 commit comments