[LCSSA] Simplify. Suggested by Sanjoy.
llvm-svn: 271041
diff --git a/llvm/lib/Transforms/Utils/LCSSA.cpp b/llvm/lib/Transforms/Utils/LCSSA.cpp
index 94c531d..ba63451 100644
--- a/llvm/lib/Transforms/Utils/LCSSA.cpp
+++ b/llvm/lib/Transforms/Utils/LCSSA.cpp
@@ -53,7 +53,7 @@
/// Return true if the specified block is in the list.
static bool isExitBlock(BasicBlock *BB,
const SmallVectorImpl<BasicBlock *> &ExitBlocks) {
- return llvm::any_of(ExitBlocks, [&](BasicBlock *EB) { return EB == BB; });
+ return find(ExitBlocks, BB) != ExitBlocks.end();
}
/// Given an instruction in the loop, check to see if it has any uses that are