[llvm-commits] [llvm] r59836 - /llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp
Dan Gohman
gohman at apple.com
Fri Nov 21 11:16:58 PST 2008
Author: djg
Date: Fri Nov 21 13:16:58 2008
New Revision: 59836
URL: http://llvm.org/viewvc/llvm-project?rev=59836&view=rev
Log:
Update comments.
Modified:
llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp
Modified: llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp?rev=59836&r1=59835&r2=59836&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp (original)
+++ llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp Fri Nov 21 13:16:58 2008
@@ -50,14 +50,14 @@
assert(TRI->isPhysicalRegister(Reg) && "Virtual register encountered!");
std::vector<SUnit *> &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 @@
// 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<SUnit *> &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 @@
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;
More information about the llvm-commits
mailing list