From: Benjamin Kramer Date: Fri, 13 Mar 2015 21:17:02 +0000 (+0000) Subject: BranchFolding: MergePotentialsElt has a total order, just call array_pod_sort. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fbbc2cc358b713aa050d353713a07f25fffeb86e;p=oota-llvm.git BranchFolding: MergePotentialsElt has a total order, just call array_pod_sort. No functionality change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232217 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp index a2e981680c6..abe7ca1610c 100644 --- a/lib/CodeGen/BranchFolding.cpp +++ b/lib/CodeGen/BranchFolding.cpp @@ -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) {