diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-03-13 21:17:02 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-03-13 21:17:02 +0000 |
commit | 848c9facc8eb7a0d6920efa3ceb17f5569de2fa1 (patch) | |
tree | 6dec5610c7982646d5c825425ff9fa3ac7a75bdf /llvm/lib/CodeGen/BranchFolding.cpp | |
parent | b9263570a59371126d3492f68853029a3f801fce (diff) | |
download | bcm5719-llvm-848c9facc8eb7a0d6920efa3ceb17f5569de2fa1.tar.gz bcm5719-llvm-848c9facc8eb7a0d6920efa3ceb17f5569de2fa1.zip |
BranchFolding: MergePotentialsElt has a total order, just call array_pod_sort.
No functionality change intended.
llvm-svn: 232217
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
-rw-r--r-- | llvm/lib/CodeGen/BranchFolding.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |