From cd543d7ad6019c48ef38879589f27fb08bb83045 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Fri, 27 May 2016 20:25:31 +0000 Subject: [PATCH] [LCSSA] Simplify. Suggested by Sanjoy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271041 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/LCSSA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Utils/LCSSA.cpp b/lib/Transforms/Utils/LCSSA.cpp index 94c531d7d18..ba6345137d2 100644 --- a/lib/Transforms/Utils/LCSSA.cpp +++ b/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 -- 2.11.0