[Mlir-commits] [mlir] c05c909 - [MLIR] Apply clang-tidy fixes for llvm-qualified-auto in MemRefUtils.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Sun Sep 28 06:44:53 PDT 2025


Author: Mehdi Amini
Date: 2025-09-28T06:44:28-07:00
New Revision: c05c90949245a5beb15d425caf60020813423e72

URL: https://github.com/llvm/llvm-project/commit/c05c90949245a5beb15d425caf60020813423e72
DIFF: https://github.com/llvm/llvm-project/commit/c05c90949245a5beb15d425caf60020813423e72.diff

LOG: [MLIR] Apply clang-tidy fixes for llvm-qualified-auto in MemRefUtils.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Dialect/MemRef/Utils/MemRefUtils.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/MemRef/Utils/MemRefUtils.cpp b/mlir/lib/Dialect/MemRef/Utils/MemRefUtils.cpp
index 3de9c3898c713..6200366cded29 100644
--- a/mlir/lib/Dialect/MemRef/Utils/MemRefUtils.cpp
+++ b/mlir/lib/Dialect/MemRef/Utils/MemRefUtils.cpp
@@ -191,7 +191,7 @@ computeSuffixProductIRBlock(Location loc, OpBuilder &builder,
 }
 
 MemrefValue skipFullyAliasingOperations(MemrefValue source) {
-  while (auto op = source.getDefiningOp()) {
+  while (auto *op = source.getDefiningOp()) {
     if (auto subViewOp = dyn_cast<memref::SubViewOp>(op);
         subViewOp && subViewOp.hasZeroOffset() && subViewOp.hasUnitStride()) {
       // A `memref.subview` with an all zero offset, and all unit strides, still
@@ -208,7 +208,7 @@ MemrefValue skipFullyAliasingOperations(MemrefValue source) {
 }
 
 MemrefValue skipViewLikeOps(MemrefValue source) {
-  while (auto op = source.getDefiningOp()) {
+  while (auto *op = source.getDefiningOp()) {
     if (auto viewLike = dyn_cast<ViewLikeOpInterface>(op)) {
       if (source == viewLike.getViewDest()) {
         source = cast<MemrefValue>(viewLike.getViewSource());


        


More information about the Mlir-commits mailing list