summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-05-11 15:17:28 -0700
committerMehdi Amini <joker.eph@gmail.com>2019-05-20 13:37:10 -0700
commit02e03b9bf4a1fe60b89d4bd662895ebcc374129b (patch)
treef300b5e0886e01bd59c6fb7d7042b4e1fbf9ff3d /mlir/lib/Transforms/Utils/LoopUtils.cpp
parent360f8a209e21b058cc20949fc8600817b0a1044c (diff)
downloadbcm5719-llvm-02e03b9bf4a1fe60b89d4bd662895ebcc374129b.tar.gz
bcm5719-llvm-02e03b9bf4a1fe60b89d4bd662895ebcc374129b.zip
Add support for using llvm::dyn_cast/cast/isa for operation casts and replace usages of Operation::dyn_cast with llvm::dyn_cast.
-- PiperOrigin-RevId: 247778391
Diffstat (limited to 'mlir/lib/Transforms/Utils/LoopUtils.cpp')
-rw-r--r--mlir/lib/Transforms/Utils/LoopUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/Utils/LoopUtils.cpp b/mlir/lib/Transforms/Utils/LoopUtils.cpp
index a10e4a1ae49..7fbb48ecf99 100644
--- a/mlir/lib/Transforms/Utils/LoopUtils.cpp
+++ b/mlir/lib/Transforms/Utils/LoopUtils.cpp
@@ -363,7 +363,7 @@ void mlir::getPerfectlyNestedLoops(SmallVectorImpl<AffineForOp> &nestedLoops,
nestedLoops.push_back(curr);
auto *currBody = curr.getBody();
while (currBody->begin() == std::prev(currBody->end(), 2) &&
- (curr = curr.getBody()->front().dyn_cast<AffineForOp>())) {
+ (curr = dyn_cast<AffineForOp>(curr.getBody()->front()))) {
nestedLoops.push_back(curr);
currBody = curr.getBody();
}
OpenPOWER on IntegriCloud