mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
[LCSSA] Simplify. Suggested by Sanjoy.
llvm-svn: 271041
This commit is contained in:
parent
f560f82e38
commit
838d4afdb1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user