[llvm] r232217 - BranchFolding: MergePotentialsElt has a total order, just call array_pod_sort.
Benjamin Kramer
benny.kra at googlemail.com
Fri Mar 13 14:17:02 PDT 2015
Author: d0k
Date: Fri Mar 13 16:17:02 2015
New Revision: 232217
URL: http://llvm.org/viewvc/llvm-project?rev=232217&view=rev
Log:
BranchFolding: MergePotentialsElt has a total order, just call array_pod_sort.
No functionality change intended.
Modified:
llvm/trunk/lib/CodeGen/BranchFolding.cpp
Modified: llvm/trunk/lib/CodeGen/BranchFolding.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/BranchFolding.cpp?rev=232217&r1=232216&r2=232217&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/BranchFolding.cpp (original)
+++ llvm/trunk/lib/CodeGen/BranchFolding.cpp Fri Mar 13 16:17:02 2015
@@ -818,7 +818,7 @@ bool BranchFolder::TryTailMergeBlocks(Ma
// 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) {
More information about the llvm-commits
mailing list