diff options
author | Kazu Hirata <kazu@google.com> | 2021-01-06 18:27:36 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-01-06 18:27:36 -0800 |
commit | cfeecdf7b6df9cd89488948b440f8deeb458104c (patch) | |
tree | 1ec05d9a86a1305a0644ddcfa01a797adb99c77d /llvm/lib/CodeGen/MachineOutliner.cpp | |
parent | 9b228f107d43341ef73af92865f73a9a076c5a76 (diff) | |
download | llvm-cfeecdf7b6df9cd89488948b440f8deeb458104c.zip llvm-cfeecdf7b6df9cd89488948b440f8deeb458104c.tar.gz llvm-cfeecdf7b6df9cd89488948b440f8deeb458104c.tar.bz2 |
[llvm] Use llvm::all_of (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/MachineOutliner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineOutliner.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/MachineOutliner.cpp b/llvm/lib/CodeGen/MachineOutliner.cpp index ec3668a..e2c15c6 100644 --- a/llvm/lib/CodeGen/MachineOutliner.cpp +++ b/llvm/lib/CodeGen/MachineOutliner.cpp @@ -545,11 +545,10 @@ void MachineOutliner::findCandidates( // That is, one must either // * End before the other starts // * Start after the other ends - if (std::all_of( - CandidatesForRepeatedSeq.begin(), CandidatesForRepeatedSeq.end(), - [&StartIdx, &EndIdx](const Candidate &C) { - return (EndIdx < C.getStartIdx() || StartIdx > C.getEndIdx()); - })) { + if (llvm::all_of(CandidatesForRepeatedSeq, [&StartIdx, + &EndIdx](const Candidate &C) { + return (EndIdx < C.getStartIdx() || StartIdx > C.getEndIdx()); + })) { // It doesn't overlap with anything, so we can outline it. // Each sequence is over [StartIt, EndIt]. // Save the candidate and its location. |