1
0
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:
Davide Italiano 2017-07-10 20:45:00 +00:00
parent d0915607d8
commit 540d27f972

View File

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