aboutsummaryrefslogtreecommitdiff
path: root/mlir/lib/Transforms/LoopFusion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/Transforms/LoopFusion.cpp')
-rw-r--r--mlir/lib/Transforms/LoopFusion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/LoopFusion.cpp b/mlir/lib/Transforms/LoopFusion.cpp
index 6a456ea..24ef03ba 100644
--- a/mlir/lib/Transforms/LoopFusion.cpp
+++ b/mlir/lib/Transforms/LoopFusion.cpp
@@ -1565,7 +1565,7 @@ public:
// producer scenarios will still go through profitability analysis
// if only one of the stores is involved the producer-consumer
// relationship of the candidate loops.
- assert(producerStores.size() > 0 && "Expected producer store");
+ assert(!producerStores.empty() && "Expected producer store");
if (producerStores.size() > 1)
LLVM_DEBUG(llvm::dbgs() << "Skipping profitability analysis. Not "
"supported for this case\n");