From 848c9facc8eb7a0d6920efa3ceb17f5569de2fa1 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 13 Mar 2015 21:17:02 +0000 Subject: BranchFolding: MergePotentialsElt has a total order, just call array_pod_sort. No functionality change intended. llvm-svn: 232217 --- llvm/lib/CodeGen/BranchFolding.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen') diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp index a2e981680c6..abe7ca1610c 100644 --- a/llvm/lib/CodeGen/BranchFolding.cpp +++ b/llvm/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) { -- cgit v1.2.3