[llvm] [llvm] Use llvm::sort (NFC) (PR #96434)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 23 10:06:14 PDT 2024


================
@@ -612,10 +612,9 @@ void PipelineSolver::populateReadyList(
   }
 
   if (UseCostHeur) {
-    std::sort(ReadyList.begin(), ReadyList.end(),
-              [](std::pair<int, int> A, std::pair<int, int> B) {
-                return A.second < B.second;
-              });
+    llvm::sort(ReadyList, [](std::pair<int, int> A, std::pair<int, int> B) {
----------------
MaskRay wrote:

less_second

https://github.com/llvm/llvm-project/pull/96434


More information about the llvm-commits mailing list