diff options
author | Fangrui Song <maskray@google.com> | 2018-10-19 06:12:02 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2018-10-19 06:12:02 +0000 |
commit | 2e83b2e9ee1afcfa9265df8fee60984d7bb55965 (patch) | |
tree | 5b9aa53a3014d1252779041abd559756bb6ed9e6 /llvm/lib/Transforms/Scalar/CallSiteSplitting.cpp | |
parent | 903542009126e107299aa11d3ecf727010d44bc0 (diff) | |
download | bcm5719-llvm-2e83b2e9ee1afcfa9265df8fee60984d7bb55965.tar.gz bcm5719-llvm-2e83b2e9ee1afcfa9265df8fee60984d7bb55965.zip |
Use llvm::{all,any,none}_of instead std::{all,any,none}_of. NFC
llvm-svn: 344774
Diffstat (limited to 'llvm/lib/Transforms/Scalar/CallSiteSplitting.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/CallSiteSplitting.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/CallSiteSplitting.cpp b/llvm/lib/Transforms/Scalar/CallSiteSplitting.cpp index e82682e08ab..bac6ef99f03 100644 --- a/llvm/lib/Transforms/Scalar/CallSiteSplitting.cpp +++ b/llvm/lib/Transforms/Scalar/CallSiteSplitting.cpp @@ -461,10 +461,9 @@ static bool tryToSplitOnPredicatedArgument(CallSite CS, DominatorTree *DT) { PredsCS.push_back({Pred, Conditions}); } - if (std::all_of(PredsCS.begin(), PredsCS.end(), - [](const std::pair<BasicBlock *, ConditionsTy> &P) { - return P.second.empty(); - })) + if (all_of(PredsCS, [](const std::pair<BasicBlock *, ConditionsTy> &P) { + return P.second.empty(); + })) return false; splitCallSite(CS, PredsCS, DT); |