mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-13 23:26:25 +00:00
R600: Remove leftover code in R600MachineScheduler.cpp
Spotted by Benjamin Kramer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183413 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -122,23 +122,7 @@ SUnit* R600SchedStrategy::pickNode(bool &IsTopNode) {
|
|||||||
return SU;
|
return SU;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsUnScheduled(const SUnit *SU) {
|
|
||||||
return SU->isScheduled;
|
|
||||||
}
|
|
||||||
|
|
||||||
static
|
|
||||||
void Filter(std::vector<SUnit *> &List) {
|
|
||||||
List.erase(std::remove_if(List.begin(), List.end(), IsUnScheduled), List.end());
|
|
||||||
}
|
|
||||||
|
|
||||||
void R600SchedStrategy::schedNode(SUnit *SU, bool IsTopNode) {
|
void R600SchedStrategy::schedNode(SUnit *SU, bool IsTopNode) {
|
||||||
if (IsTopNode) {
|
|
||||||
for (unsigned i = 0; i < AluLast; i++) {
|
|
||||||
Filter(Available[i]);
|
|
||||||
Filter(Pending[i]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (NextInstKind != CurInstKind) {
|
if (NextInstKind != CurInstKind) {
|
||||||
DEBUG(dbgs() << "Instruction Type Switch\n");
|
DEBUG(dbgs() << "Instruction Type Switch\n");
|
||||||
if (NextInstKind != IDAlu)
|
if (NextInstKind != IDAlu)
|
||||||
|
Reference in New Issue
Block a user