Fix the top-level comments, and fix some 80-column violations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60707 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-12-08 17:50:35 +00:00
parent b79a01111d
commit a629b48a66

View File

@ -1,4 +1,4 @@
//===---- ScheduleDAG.cpp - Implement the ScheduleDAG class ---------------===// //===---- ScheduleDAGInstrs.cpp - MachineInstr Rescheduling ---------------===//
// //
// The LLVM Compiler Infrastructure // The LLVM Compiler Infrastructure
// //
@ -7,8 +7,8 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// //
// This implements the ScheduleDAG class, which is a base class used by // This implements the ScheduleDAGInstrs class, which implements re-scheduling
// scheduling implementation classes. // of MachineInstrs.
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
@ -114,7 +114,8 @@ void ScheduleDAGInstrs::BuildSchedUnits() {
if (TID.isCall() || TID.isReturn() || TID.isBranch() || if (TID.isCall() || TID.isReturn() || TID.isBranch() ||
TID.hasUnmodeledSideEffects()) { TID.hasUnmodeledSideEffects()) {
new_chain: new_chain:
// This is the conservative case. Add dependencies on all memory references. // This is the conservative case. Add dependencies on all memory
// references.
if (Chain) if (Chain)
Chain->addPred(SU, /*isCtrl=*/true, /*isArtificial=*/false); Chain->addPred(SU, /*isCtrl=*/true, /*isArtificial=*/false);
Chain = SU; Chain = SU;
@ -161,7 +162,8 @@ void ScheduleDAGInstrs::BuildSchedUnits() {
MemDefs[V] = SU; MemDefs[V] = SU;
} }
// Handle the uses in MemUses, if there are any. // Handle the uses in MemUses, if there are any.
std::map<const Value *, std::vector<SUnit *> >::iterator J = MemUses.find(V); std::map<const Value *, std::vector<SUnit *> >::iterator J =
MemUses.find(V);
if (J != MemUses.end()) { if (J != MemUses.end()) {
for (unsigned i = 0, e = J->second.size(); i != e; ++i) for (unsigned i = 0, e = J->second.size(); i != e; ++i)
J->second[i]->addPred(SU, /*isCtrl=*/true, /*isArtificial=*/false); J->second[i]->addPred(SU, /*isCtrl=*/true, /*isArtificial=*/false);
@ -203,8 +205,8 @@ void ScheduleDAGInstrs::BuildSchedUnits() {
} }
} }
// Add chain edges from the terminator to ensure that all the work of the block is // Add chain edges from the terminator to ensure that all the work of the
// completed before any control transfers. // block is completed before any control transfers.
if (Terminator && SU->Succs.empty()) if (Terminator && SU->Succs.empty())
Terminator->addPred(SU, /*isCtrl=*/true, /*isArtificial=*/false); Terminator->addPred(SU, /*isCtrl=*/true, /*isArtificial=*/false);
if (TID.isTerminator() || MI->isLabel()) if (TID.isTerminator() || MI->isLabel())