[Mlir-commits] [mlir] 0dd2113 - Add LLVM_ATTRIBUTE_UNUSED to function used only in assert (NFC)

Mehdi Amini llvmlistbot at llvm.org
Wed Apr 1 10:31:24 PDT 2020


Author: Mehdi Amini
Date: 2020-04-01T17:21:07Z
New Revision: 0dd21130efcd33e063155bba9af67517d59305c6

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

LOG: Add LLVM_ATTRIBUTE_UNUSED to function used only in assert (NFC)

Added: 
    

Modified: 
    mlir/lib/Transforms/Utils/LoopUtils.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Transforms/Utils/LoopUtils.cpp b/mlir/lib/Transforms/Utils/LoopUtils.cpp
index 235becc92628..86d0ff49c0ae 100644
--- a/mlir/lib/Transforms/Utils/LoopUtils.cpp
+++ b/mlir/lib/Transforms/Utils/LoopUtils.cpp
@@ -694,7 +694,7 @@ bool mlir::isValidLoopInterchangePermutation(ArrayRef<AffineForOp> loops,
 }
 
 /// Return true if `loops` is a perfect nest.
-static bool isPerfectlyNested(ArrayRef<AffineForOp> loops) {
+static bool LLVM_ATTRIBUTE_UNUSED isPerfectlyNested(ArrayRef<AffineForOp> loops) {
   auto outerLoop = loops.front();
   for (auto loop : loops.drop_front()) {
     auto parentForOp = dyn_cast<AffineForOp>(loop.getParentOp());


        


More information about the Mlir-commits mailing list