aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-12-09 16:37:48 +0000
committerDan Gohman <gohman@apple.com>2008-12-09 16:37:48 +0000
commite3a49cd944ad41eba5a594f1de773d531ad25403 (patch)
tree4c3e625e4d02eaf0db16e60d7b12117739319628 /lib
parent260435c80781192754a13dbe51a801eed0eed398 (diff)
downloadexternal_llvm-e3a49cd944ad41eba5a594f1de773d531ad25403.zip
external_llvm-e3a49cd944ad41eba5a594f1de773d531ad25403.tar.gz
external_llvm-e3a49cd944ad41eba5a594f1de773d531ad25403.tar.bz2
Whitespace cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60769 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/ScheduleDAG.cpp26
1 files changed, 14 insertions, 12 deletions
diff --git a/lib/CodeGen/ScheduleDAG.cpp b/lib/CodeGen/ScheduleDAG.cpp
index 7088313..42d0fca 100644
--- a/lib/CodeGen/ScheduleDAG.cpp
+++ b/lib/CodeGen/ScheduleDAG.cpp
@@ -49,9 +49,9 @@ void ScheduleDAG::CalculateDepths() {
// Is it a node without dependencies?
if (Degree == 0) {
- assert(SU->Preds.empty() && "SUnit should have no predecessors");
- // Collect leaf nodes
- WorkList.push_back(SU);
+ assert(SU->Preds.empty() && "SUnit should have no predecessors");
+ // Collect leaf nodes
+ WorkList.push_back(SU);
}
}
@@ -69,7 +69,7 @@ void ScheduleDAG::CalculateDepths() {
I != E; ++I) {
unsigned PredDepth = I->Dep->Depth;
if (PredDepth+1 > SUDepth) {
- SUDepth = PredDepth + 1;
+ SUDepth = PredDepth + 1;
}
}
@@ -103,10 +103,10 @@ void ScheduleDAG::CalculateHeights() {
// Is it a node without dependencies?
if (Degree == 0) {
- assert(SU->Succs.empty() && "Something wrong");
- assert(WorkList.empty() && "Should be empty");
- // Collect leaf nodes
- WorkList.push_back(SU);
+ assert(SU->Succs.empty() && "Something wrong");
+ assert(WorkList.empty() && "Should be empty");
+ // Collect leaf nodes
+ WorkList.push_back(SU);
}
}
@@ -124,7 +124,7 @@ void ScheduleDAG::CalculateHeights() {
I != E; ++I) {
unsigned SuccHeight = I->Dep->Height;
if (SuccHeight+1 > SUHeight) {
- SUHeight = SuccHeight + 1;
+ SUHeight = SuccHeight + 1;
}
}
@@ -375,7 +375,8 @@ void ScheduleDAGTopologicalSort::RemovePred(SUnit *M, SUnit *N) {
/// DFS - Make a DFS traversal to mark all nodes reachable from SU and mark
/// all nodes affected by the edge insertion. These nodes will later get new
/// topological indexes by means of the Shift method.
-void ScheduleDAGTopologicalSort::DFS(const SUnit *SU, int UpperBound, bool& HasLoop) {
+void ScheduleDAGTopologicalSort::DFS(const SUnit *SU, int UpperBound,
+ bool& HasLoop) {
std::vector<const SUnit*> WorkList;
WorkList.reserve(SUnits.size());
@@ -401,7 +402,7 @@ void ScheduleDAGTopologicalSort::DFS(const SUnit *SU, int UpperBound, bool& HasL
/// Shift - Renumber the nodes so that the topological ordering is
/// preserved.
void ScheduleDAGTopologicalSort::Shift(BitVector& Visited, int LowerBound,
- int UpperBound) {
+ int UpperBound) {
std::vector<int> L;
int shift = 0;
int i;
@@ -439,7 +440,8 @@ bool ScheduleDAGTopologicalSort::WillCreateCycle(SUnit *SU, SUnit *TargetSU) {
}
/// IsReachable - Checks if SU is reachable from TargetSU.
-bool ScheduleDAGTopologicalSort::IsReachable(const SUnit *SU, const SUnit *TargetSU) {
+bool ScheduleDAGTopologicalSort::IsReachable(const SUnit *SU,
+ const SUnit *TargetSU) {
// If insertion of the edge SU->TargetSU would create a cycle
// then there is a path from TargetSU to SU.
int UpperBound, LowerBound;