[llvm] r271041 - [LCSSA] Simplify. Suggested by Sanjoy.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Fri May 27 13:25:33 PDT 2016
Author: davide
Date: Fri May 27 15:25:31 2016
New Revision: 271041
URL: http://llvm.org/viewvc/llvm-project?rev=271041&view=rev
Log:
[LCSSA] Simplify. Suggested by Sanjoy.
Modified:
llvm/trunk/lib/Transforms/Utils/LCSSA.cpp
Modified: llvm/trunk/lib/Transforms/Utils/LCSSA.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LCSSA.cpp?rev=271041&r1=271040&r2=271041&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/LCSSA.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/LCSSA.cpp Fri May 27 15:25:31 2016
@@ -53,7 +53,7 @@ STATISTIC(NumLCSSA, "Number of live out
/// 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
More information about the llvm-commits
mailing list