diff options
author | Fangrui Song <maskray@google.com> | 2019-04-24 14:43:05 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-04-24 14:43:05 +0000 |
commit | 329eb5c6baeca0a1bd6b1a5bd55e41de786f39fa (patch) | |
tree | 4d3a4a287664e6e195367043a2ae139a9445c2a4 /utils | |
parent | cda3d286934fcc7de3687bb8a178947a8266d1f8 (diff) |
Use llvm::stable_sort
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359098 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/NeonEmitter.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/utils/TableGen/NeonEmitter.cpp b/utils/TableGen/NeonEmitter.cpp index ecd7c3fde9..5cb688061d 100644 --- a/utils/TableGen/NeonEmitter.cpp +++ b/utils/TableGen/NeonEmitter.cpp @@ -2456,9 +2456,7 @@ void NeonEmitter::run(raw_ostream &OS) { for (auto *I : Defs) I->indexBody(); - std::stable_sort( - Defs.begin(), Defs.end(), - [](const Intrinsic *A, const Intrinsic *B) { return *A < *B; }); + llvm::stable_sort(Defs, llvm::less_ptr<Intrinsic>()); // Only emit a def when its requirements have been met. // FIXME: This loop could be made faster, but it's fast enough for now. @@ -2565,9 +2563,7 @@ void NeonEmitter::runFP16(raw_ostream &OS) { for (auto *I : Defs) I->indexBody(); - std::stable_sort( - Defs.begin(), Defs.end(), - [](const Intrinsic *A, const Intrinsic *B) { return *A < *B; }); + llvm::stable_sort(Defs, llvm::less_ptr<Intrinsic>()); // Only emit a def when its requirements have been met. // FIXME: This loop could be made faster, but it's fast enough for now. |