BranchFolding: MergePotentialsElt has a total order, just call array_pod_sort.
[oota-llvm.git] / lib / CodeGen / BranchFolding.cpp
index a2e981680c68191b6b467d7e48eca821e8067a5d..abe7ca1610ca0fe208c80f162a52d9aa0bdadeef 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) {