summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/Transforms/Utils/LoopUtils.cpp')
-rw-r--r--mlir/lib/Transforms/Utils/LoopUtils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/mlir/lib/Transforms/Utils/LoopUtils.cpp b/mlir/lib/Transforms/Utils/LoopUtils.cpp
index 66e7c5975da..d41614545d2 100644
--- a/mlir/lib/Transforms/Utils/LoopUtils.cpp
+++ b/mlir/lib/Transforms/Utils/LoopUtils.cpp
@@ -46,12 +46,12 @@ AffineMap mlir::getUnrolledLoopUpperBound(const ForInst &forInst,
// Single result lower bound map only.
if (lbMap.getNumResults() != 1)
- return AffineMap::Null();
+ return AffineMap();
// Sometimes, the trip count cannot be expressed as an affine expression.
auto tripCount = getTripCountExpr(forInst);
if (!tripCount)
- return AffineMap::Null();
+ return AffineMap();
AffineExpr lb(lbMap.getResult(0));
unsigned step = forInst.getStep();
@@ -72,12 +72,12 @@ AffineMap mlir::getCleanupLoopLowerBound(const ForInst &forInst,
// Single result lower bound map only.
if (lbMap.getNumResults() != 1)
- return AffineMap::Null();
+ return AffineMap();
// Sometimes the trip count cannot be expressed as an affine expression.
AffineExpr tripCount(getTripCountExpr(forInst));
if (!tripCount)
- return AffineMap::Null();
+ return AffineMap();
AffineExpr lb(lbMap.getResult(0));
unsigned step = forInst.getStep();
OpenPOWER on IntegriCloud