mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-05 12:31:46 +00:00
Simplify code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24806 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
38abcb500f
commit
a5282d8df2
@ -704,13 +704,8 @@ void SimpleSched::VisitAll() {
|
|||||||
if (DAG.getEntryNode().Val != DAG.getRoot().Val)
|
if (DAG.getEntryNode().Val != DAG.getRoot().Val)
|
||||||
Ordering.push_back(getNI(DAG.getEntryNode().Val));
|
Ordering.push_back(getNI(DAG.getEntryNode().Val));
|
||||||
|
|
||||||
// FIXME - Reverse the order
|
// Reverse the order
|
||||||
for (unsigned i = 0, N = Ordering.size(), Half = N >> 1; i < Half; i++) {
|
std::reverse(Ordering.begin(), Ordering.end());
|
||||||
unsigned j = N - i - 1;
|
|
||||||
NodeInfo *tmp = Ordering[i];
|
|
||||||
Ordering[i] = Ordering[j];
|
|
||||||
Ordering[j] = tmp;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// IdentifyGroups - Put flagged nodes into groups.
|
/// IdentifyGroups - Put flagged nodes into groups.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user