From fc626b62b877beec1cc3c0289eb794f28614e23f Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 21 Nov 2008 19:16:58 +0000 Subject: [PATCH] Update comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59836 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/ScheduleDAGInstrs.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/CodeGen/ScheduleDAGInstrs.cpp b/lib/CodeGen/ScheduleDAGInstrs.cpp index c83af095d08..8d0e7788fdc 100644 --- a/lib/CodeGen/ScheduleDAGInstrs.cpp +++ b/lib/CodeGen/ScheduleDAGInstrs.cpp @@ -50,14 +50,14 @@ void ScheduleDAGInstrs::BuildSchedUnits() { assert(TRI->isPhysicalRegister(Reg) && "Virtual register encountered!"); std::vector &UseList = Uses[Reg]; SUnit *&Def = Defs[Reg]; - // Optionally add output and anti dependences. + // Optionally add output and anti dependencies. if (Def && Def != SU) - Def->addPred(SU, /*isCtrl=*/true, /*isSpecial=*/false, + Def->addPred(SU, /*isCtrl=*/true, /*isArtificial=*/false, /*PhyReg=*/Reg, Cost, /*isAntiDep=*/MO.isUse()); for (const unsigned *Alias = TRI->getAliasSet(Reg); *Alias; ++Alias) { SUnit *&Def = Defs[*Alias]; if (Def && Def != SU) - Def->addPred(SU, /*isCtrl=*/true, /*isSpecial=*/false, + Def->addPred(SU, /*isCtrl=*/true, /*isArtificial=*/false, /*PhyReg=*/*Alias, Cost); } @@ -65,13 +65,13 @@ void ScheduleDAGInstrs::BuildSchedUnits() { // Add any data dependencies. for (unsigned i = 0, e = UseList.size(); i != e; ++i) if (UseList[i] != SU) - UseList[i]->addPred(SU, /*isCtrl=*/false, /*isSpecial=*/false, + UseList[i]->addPred(SU, /*isCtrl=*/false, /*isArtificial=*/false, /*PhysReg=*/Reg, Cost); for (const unsigned *Alias = TRI->getAliasSet(Reg); *Alias; ++Alias) { std::vector &UseList = Uses[*Alias]; for (unsigned i = 0, e = UseList.size(); i != e; ++i) if (UseList[i] != SU) - UseList[i]->addPred(SU, /*isCtrl=*/false, /*isSpecial=*/false, + UseList[i]->addPred(SU, /*isCtrl=*/false, /*isArtificial=*/false, /*PhysReg=*/*Alias, Cost); } @@ -85,18 +85,18 @@ void ScheduleDAGInstrs::BuildSchedUnits() { bool True = true; if (!MI->isSafeToMove(TII, False)) { if (Chain) - Chain->addPred(SU, /*isCtrl=*/false, /*isSpecial=*/false); + Chain->addPred(SU, /*isCtrl=*/false, /*isArtificial=*/false); for (unsigned k = 0, m = PendingLoads.size(); k != m; ++k) - PendingLoads[k]->addPred(SU, /*isCtrl=*/false, /*isSpecial=*/false); + PendingLoads[k]->addPred(SU, /*isCtrl=*/false, /*isArtificial=*/false); PendingLoads.clear(); Chain = SU; } else if (!MI->isSafeToMove(TII, True)) { if (Chain) - Chain->addPred(SU, /*isCtrl=*/false, /*isSpecial=*/false); + Chain->addPred(SU, /*isCtrl=*/false, /*isArtificial=*/false); PendingLoads.push_back(SU); } if (Terminator && SU->Succs.empty()) - Terminator->addPred(SU, /*isCtrl=*/false, /*isSpecial=*/false); + Terminator->addPred(SU, /*isCtrl=*/false, /*isArtificial=*/false); if (MI->getDesc().isTerminator() || MI->isLabel()) Terminator = SU; -- 2.34.1