Use range algorithms instead of unpacking begin/end

No functionality change is intended.

llvm-svn: 278417
This commit is contained in:
David Majnemer
2016-08-11 21:15:00 +00:00
parent 1b689da04e
commit 0a16c22846
46 changed files with 137 additions and 153 deletions

View File

@@ -45,8 +45,7 @@ static void completeEphemeralValues(SmallVector<const Value *, 16> &WorkSet,
continue;
// If all uses of this value are ephemeral, then so is this value.
if (!std::all_of(V->user_begin(), V->user_end(),
[&](const User *U) { return EphValues.count(U); }))
if (!all_of(V->users(), [&](const User *U) { return EphValues.count(U); }))
continue;
EphValues.insert(V);