From 88a7892a0726a0f39910eacb2c2a1ef648803de7 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Fri, 27 May 2016 20:25:31 +0000 Subject: [LCSSA] Simplify. Suggested by Sanjoy. llvm-svn: 271041 --- llvm/lib/Transforms/Utils/LCSSA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Utils') diff --git a/llvm/lib/Transforms/Utils/LCSSA.cpp b/llvm/lib/Transforms/Utils/LCSSA.cpp index 94c531d7d18..ba6345137d2 100644 --- a/llvm/lib/Transforms/Utils/LCSSA.cpp +++ b/llvm/lib/Transforms/Utils/LCSSA.cpp @@ -53,7 +53,7 @@ STATISTIC(NumLCSSA, "Number of live out of a loop variables"); /// Return true if the specified block is in the list. static bool isExitBlock(BasicBlock *BB, const SmallVectorImpl &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 -- cgit v1.2.3