[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 8bda508b7b
commit a7a77540ef
1 changed files with 1 additions and 3 deletions

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