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/LoopPeel.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/LoopPeel.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopPeel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopPeel.cpp b/llvm/lib/Transforms/Utils/LoopPeel.cpp index ff9b9ec..a08b578 100644 --- a/llvm/lib/Transforms/Utils/LoopPeel.cpp +++ b/llvm/lib/Transforms/Utils/LoopPeel.cpp @@ -304,7 +304,7 @@ void llvm::computePeelCount(Loop *L, unsigned LoopSize, // Only try to peel innermost loops by default. // The constraint can be relaxed by the target in TTI.getUnrollingPreferences // or by the flag -unroll-allow-loop-nests-peeling. - if (!PP.AllowLoopNestsPeeling && !L->empty()) + if (!PP.AllowLoopNestsPeeling && !L->isInnermost()) return; // If the user provided a peel count, use that. |