[Mlir-commits] [mlir] 91671e1 - [mlir] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off build after D85869

Fangrui Song llvmlistbot at llvm.org
Mon Sep 21 18:36:03 PDT 2020


Author: Fangrui Song
Date: 2020-09-21T18:34:49-07:00
New Revision: 91671e13efbc5dbd17b832d7973401350d0a6ee6

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

LOG: [mlir] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off build after D85869

Added: 
    

Modified: 
    mlir/lib/Dialect/Affine/Transforms/SuperVectorize.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Affine/Transforms/SuperVectorize.cpp b/mlir/lib/Dialect/Affine/Transforms/SuperVectorize.cpp
index 5cc65ecc7ef7..1feeecb5c400 100644
--- a/mlir/lib/Dialect/Affine/Transforms/SuperVectorize.cpp
+++ b/mlir/lib/Dialect/Affine/Transforms/SuperVectorize.cpp
@@ -1356,9 +1356,11 @@ verifyLoopNesting(const std::vector<SmallVector<AffineForOp, 2>> &loops) {
 
       //  Check that each loop at this level is not nested in another loop from
       //  this level.
+#ifndef NDEBUG
       for (AffineForOp sibling : loops[i])
         assert(!sibling.getOperation()->isProperAncestor(loop) &&
                "Loops at the same level are nested");
+#endif
     }
   }
 }


        


More information about the Mlir-commits mailing list