[Mlir-commits] [mlir] 1f3f144 - [NFC] Wrap MLIR addAffineForOpDomain warning with LLVM_DEBUG

Shivam Gupta llvmlistbot at llvm.org
Thu Sep 23 00:50:36 PDT 2021


Author: Tharindu Rusira
Date: 2021-09-23T13:20:16+05:30
New Revision: 1f3f144446d1766b6bd63ac02a064450c4fa5e55

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

LOG: [NFC] Wrap MLIR addAffineForOpDomain warning with LLVM_DEBUG

Current warning message in method `addAffineForOpDomain` of mlir/lib/Analysis/AffineStructures.cpp is being printed to the stdout/stderr.
This patch redirects the warning with LLVM_DEBUG following standard llvm practice.

Reviewed By: bondhugula

Differential Revision: https://reviews.llvm.org/D108340

Added: 
    

Modified: 
    mlir/lib/Analysis/AffineStructures.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Analysis/AffineStructures.cpp b/mlir/lib/Analysis/AffineStructures.cpp
index d170421893399..69b0aa7591a27 100644
--- a/mlir/lib/Analysis/AffineStructures.cpp
+++ b/mlir/lib/Analysis/AffineStructures.cpp
@@ -628,7 +628,7 @@ FlatAffineValueConstraints::addAffineForOpDomain(AffineForOp forOp) {
   int64_t step = forOp.getStep();
   if (step != 1) {
     if (!forOp.hasConstantLowerBound())
-      forOp.emitWarning("domain conservatively approximated");
+      LLVM_DEBUG(forOp.emitWarning("domain conservatively approximated"));
     else {
       // Add constraints for the stride.
       // (iv - lb) % step = 0 can be written as:


        


More information about the Mlir-commits mailing list