BranchFolding: MergePotentialsElt has a total order, just call array_pod_sort.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 13 Mar 2015 21:17:02 +0000 (21:17 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 13 Mar 2015 21:17:02 +0000 (21:17 +0000)
No functionality change intended.

llvm-svn: 232217

llvm/lib/CodeGen/BranchFolding.cpp

index a2e9816..abe7ca1 100644 (file)
@@ -818,7 +818,7 @@ bool BranchFolder::TryTailMergeBlocks(MachineBasicBlock *SuccBB,
 
   // Sort by hash value so that blocks with identical end sequences sort
   // together.
-  std::stable_sort(MergePotentials.begin(), MergePotentials.end());
+  array_pod_sort(MergePotentials.begin(), MergePotentials.end());
 
   // Walk through equivalence sets looking for actual exact matches.
   while (MergePotentials.size() > 1) {