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/Utils/LoopVersioning.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/Utils/LoopVersioning.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopVersioning.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopVersioning.cpp b/llvm/lib/Transforms/Utils/LoopVersioning.cpp index fe8fb90..cd92f6d 100644 --- a/llvm/lib/Transforms/Utils/LoopVersioning.cpp +++ b/llvm/lib/Transforms/Utils/LoopVersioning.cpp @@ -268,7 +268,7 @@ bool runImpl(LoopInfo *LI, function_ref<const LoopAccessInfo &(Loop &)> GetLAA, for (Loop *TopLevelLoop : *LI) for (Loop *L : depth_first(TopLevelLoop)) // We only handle inner-most loops. - if (L->empty()) + if (L->isInnermost()) Worklist.push_back(L); // Now walk the identified inner loops. |