diff options
Diffstat (limited to 'mlir/test/lib/Transforms')
-rw-r--r-- | mlir/test/lib/Transforms/TestLoopMapping.cpp | 2 | ||||
-rw-r--r-- | mlir/test/lib/Transforms/TestLoopParametricTiling.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mlir/test/lib/Transforms/TestLoopMapping.cpp b/mlir/test/lib/Transforms/TestLoopMapping.cpp index fb1ef64d26f..bf354670f92 100644 --- a/mlir/test/lib/Transforms/TestLoopMapping.cpp +++ b/mlir/test/lib/Transforms/TestLoopMapping.cpp @@ -51,7 +51,7 @@ public: func.walk<loop::ForOp>([&processorIds, &numProcessors](loop::ForOp op) { // Ignore nested loops. - if (op.getContainingRegion()->getParentOfType<loop::ForOp>()) + if (op.getParentRegion()->getParentOfType<loop::ForOp>()) return; mapLoopToProcessorIds(op, processorIds, numProcessors); }); diff --git a/mlir/test/lib/Transforms/TestLoopParametricTiling.cpp b/mlir/test/lib/Transforms/TestLoopParametricTiling.cpp index 0f13e5ee2fa..d30eacc044d 100644 --- a/mlir/test/lib/Transforms/TestLoopParametricTiling.cpp +++ b/mlir/test/lib/Transforms/TestLoopParametricTiling.cpp @@ -45,7 +45,7 @@ public: FuncOp func = getFunction(); func.walk<loop::ForOp>([this](loop::ForOp op) { // Ignore nested loops. - if (op.getContainingRegion()->getParentOfType<loop::ForOp>()) + if (op.getParentRegion()->getParentOfType<loop::ForOp>()) return; extractFixedOuterLoops(op, sizes); }); |