diff options
Diffstat (limited to 'llvm/lib/Target/R600/R600MachineScheduler.cpp')
| -rw-r--r-- | llvm/lib/Target/R600/R600MachineScheduler.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/llvm/lib/Target/R600/R600MachineScheduler.cpp b/llvm/lib/Target/R600/R600MachineScheduler.cpp index 6c26d9ece40..da2a4d862e7 100644 --- a/llvm/lib/Target/R600/R600MachineScheduler.cpp +++ b/llvm/lib/Target/R600/R600MachineScheduler.cpp @@ -92,15 +92,6 @@ SUnit* R600SchedStrategy::pickNode(bool &IsTopNode) { AllowSwitchFromAlu = true; } - - // We want to scheduled AR defs as soon as possible to make sure they aren't - // put in a different ALU clause from their uses. - if (!SU && !UnscheduledARDefs.empty()) { - SU = UnscheduledARDefs[0]; - UnscheduledARDefs.erase(UnscheduledARDefs.begin()); - NextInstKind = IDAlu; - } - if (!SU && ((AllowSwitchToAlu && CurInstKind != IDAlu) || (!AllowSwitchFromAlu && CurInstKind == IDAlu))) { // try to pick ALU @@ -130,15 +121,6 @@ SUnit* R600SchedStrategy::pickNode(bool &IsTopNode) { NextInstKind = IDOther; } - // We want to schedule the AR uses as late as possible to make sure that - // the AR defs have been released. - if (!SU && !UnscheduledARUses.empty()) { - SU = UnscheduledARUses[0]; - UnscheduledARUses.erase(UnscheduledARUses.begin()); - NextInstKind = IDAlu; - } - - DEBUG( if (SU) { dbgs() << " ** Pick node **\n"; @@ -217,20 +199,6 @@ void R600SchedStrategy::releaseBottomNode(SUnit *SU) { int IK = getInstKind(SU); - // Check for AR register defines - for (MachineInstr::const_mop_iterator I = SU->getInstr()->operands_begin(), - E = SU->getInstr()->operands_end(); - I != E; ++I) { - if (I->isReg() && I->getReg() == AMDGPU::AR_X) { - if (I->isDef()) { - UnscheduledARDefs.push_back(SU); - } else { - UnscheduledARUses.push_back(SU); - } - return; - } - } - // There is no export clause, we can schedule one as soon as its ready if (IK == IDOther) Available[IDOther].push_back(SU); |

