aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopPeel.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-12-17 10:51:39 -0800
committerKazu Hirata <kazu@google.com>2021-12-17 10:51:40 -0800
commit2b7be47b220a16c4f9301d8aeffa1dcb7224b292 (patch)
tree7432cac8c9cf32682090d1eeeabd12079761c73d /llvm/lib/Transforms/Utils/LoopPeel.cpp
parent91dfb32f2fa56e6e71428f381529f1f9b7fdbbc2 (diff)
downloadllvm-2b7be47b220a16c4f9301d8aeffa1dcb7224b292.zip
llvm-2b7be47b220a16c4f9301d8aeffa1dcb7224b292.tar.gz
llvm-2b7be47b220a16c4f9301d8aeffa1dcb7224b292.tar.bz2
[llvm] Strip redundant lambda (NFC)
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopPeel.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopPeel.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopPeel.cpp b/llvm/lib/Transforms/Utils/LoopPeel.cpp
index 5ce392d..69fd110 100644
--- a/llvm/lib/Transforms/Utils/LoopPeel.cpp
+++ b/llvm/lib/Transforms/Utils/LoopPeel.cpp
@@ -104,9 +104,7 @@ bool llvm::canPeel(Loop *L) {
// note that LoopPeeling currently can only update the branch weights of latch
// blocks and branch weights to blocks with deopt or unreachable do not need
// updating.
- return all_of(Exits, [](const BasicBlock *BB) {
- return IsBlockFollowedByDeoptOrUnreachable(BB);
- });
+ return llvm::all_of(Exits, IsBlockFollowedByDeoptOrUnreachable);
}
// This function calculates the number of iterations after which the given Phi