1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

[LCSSA] Simplify. Suggested by Sanjoy.

llvm-svn: 271041
This commit is contained in:
Davide Italiano 2016-05-27 20:25:31 +00:00
parent f560f82e38
commit 838d4afdb1

View File

@ -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<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