mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 03:29:40 +00:00
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
This commit is contained in:
parent
1f48a55e86
commit
fbbc2cc358
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user