summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-03-13 21:17:02 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-03-13 21:17:02 +0000
commit848c9facc8eb7a0d6920efa3ceb17f5569de2fa1 (patch)
tree6dec5610c7982646d5c825425ff9fa3ac7a75bdf /llvm/lib/CodeGen/BranchFolding.cpp
parentb9263570a59371126d3492f68853029a3f801fce (diff)
downloadbcm5719-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.cpp2
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) {
OpenPOWER on IntegriCloud