Skip to content

Commit

Permalink
[NFC] Wrap MLIR addAffineForOpDomain warning with LLVM_DEBUG
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Tharindu Rusira authored and xgupta committed Sep 23, 2021
1 parent 08ef24f commit 1f3f144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/lib/Analysis/AffineStructures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1f3f144

Please sign in to comment.