diff options
author | Stefanos Baziotis <sdi1600105@di.uoa.gr> | 2020-09-22 23:28:00 +0300 |
---|---|---|
committer | Stefanos Baziotis <sdi1600105@di.uoa.gr> | 2020-09-22 23:28:51 +0300 |
commit | 89c1e35f3c5060c23f9eed409f89c2c9908b87ed (patch) | |
tree | 7b667eddfb0217898e6a8e232463a808216b6188 /llvm/lib/Transforms/Scalar/LoopFuse.cpp | |
parent | 4edb3d3646c46f15ca93bf19ed96a9169143ed6d (diff) | |
download | llvm-89c1e35f3c5060c23f9eed409f89c2c9908b87ed.zip llvm-89c1e35f3c5060c23f9eed409f89c2c9908b87ed.tar.gz llvm-89c1e35f3c5060c23f9eed409f89c2c9908b87ed.tar.bz2 |
[LoopInfo] empty() -> isInnermost(), add isOutermost()
Differential Revision: https://reviews.llvm.org/D82895
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopFuse.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopFuse.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopFuse.cpp b/llvm/lib/Transforms/Scalar/LoopFuse.cpp index 90356ed..6ad63d0 100644 --- a/llvm/lib/Transforms/Scalar/LoopFuse.cpp +++ b/llvm/lib/Transforms/Scalar/LoopFuse.cpp @@ -1483,7 +1483,7 @@ private: continue; LI.changeLoopFor(BB, FC0.L); } - while (!FC1.L->empty()) { + while (!FC1.L->isInnermost()) { const auto &ChildLoopIt = FC1.L->begin(); Loop *ChildLoop = *ChildLoopIt; FC1.L->removeChildLoop(ChildLoopIt); @@ -1777,7 +1777,7 @@ private: continue; LI.changeLoopFor(BB, FC0.L); } - while (!FC1.L->empty()) { + while (!FC1.L->isInnermost()) { const auto &ChildLoopIt = FC1.L->begin(); Loop *ChildLoop = *ChildLoopIt; FC1.L->removeChildLoop(ChildLoopIt); |