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/Analysis/LoopPass.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/Analysis/LoopPass.cpp')
-rw-r--r-- | llvm/lib/Analysis/LoopPass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LoopPass.cpp b/llvm/lib/Analysis/LoopPass.cpp index 50ed1cf..f668a8e 100644 --- a/llvm/lib/Analysis/LoopPass.cpp +++ b/llvm/lib/Analysis/LoopPass.cpp @@ -77,7 +77,7 @@ LPPassManager::LPPassManager() // Insert loop into loop nest (LoopInfo) and loop queue (LQ). void LPPassManager::addLoop(Loop &L) { - if (!L.getParentLoop()) { + if (L.isOutermost()) { // This is the top level loop. LQ.push_front(&L); return; |