mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[NewGVN] Simplify a lambda a little bit. NFCI.
llvm-svn: 307586
This commit is contained in:
parent
d0915607d8
commit
540d27f972
@ -866,9 +866,7 @@ PHIExpression *NewGVN::createPHIExpression(Instruction *I, bool &HasBackedge,
|
||||
// Things in TOPClass are equivalent to everything.
|
||||
if (ValueToClass.lookup(*U) == TOPClass)
|
||||
return false;
|
||||
if (lookupOperandLeader(*U) == PN)
|
||||
return false;
|
||||
return true;
|
||||
return lookupOperandLeader(*U) != PN;
|
||||
});
|
||||
std::transform(Filtered.begin(), Filtered.end(), op_inserter(E),
|
||||
[&](const Use *U) -> Value * {
|
||||
|
Loading…
x
Reference in New Issue
Block a user