diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-09-28 19:24:24 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-09-28 19:24:24 +0000 |
commit | 6a64235d9037213c1a276391c4e7481e67f14b6c (patch) | |
tree | 130c52db324cfdeb2013525d2076352a4225824c /include | |
parent | 9815380da23c04202a66d5273fabb528ae6d14d6 (diff) | |
download | external_llvm-6a64235d9037213c1a276391c4e7481e67f14b6c.zip external_llvm-6a64235d9037213c1a276391c4e7481e67f14b6c.tar.gz external_llvm-6a64235d9037213c1a276391c4e7481e67f14b6c.tar.bz2 |
Trim some unneeded fields.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42442 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/ScheduleDAG.h | 33 |
1 files changed, 10 insertions, 23 deletions
diff --git a/include/llvm/CodeGen/ScheduleDAG.h b/include/llvm/CodeGen/ScheduleDAG.h index 9bf0834..cb95c21 100644 --- a/include/llvm/CodeGen/ScheduleDAG.h +++ b/include/llvm/CodeGen/ScheduleDAG.h @@ -113,8 +113,6 @@ namespace llvm { short NumSuccs; // # of sucss. short NumPredsLeft; // # of preds not scheduled. short NumSuccsLeft; // # of succs not scheduled. - short NumChainPredsLeft; // # of chain preds not scheduled. - short NumChainSuccsLeft; // # of chain succs not scheduled. bool isTwoAddress : 1; // Is a two-address instruction. bool isCommutable : 1; // Is a commutable instruction. bool hasImplicitDefs : 1; // Has implicit physical reg defs. @@ -131,7 +129,6 @@ namespace llvm { SUnit(SDNode *node, unsigned nodenum) : Node(node), InstanceNo(0), NodeNum(nodenum), Latency(0), NumPreds(0), NumSuccs(0), NumPredsLeft(0), NumSuccsLeft(0), - NumChainPredsLeft(0), NumChainSuccsLeft(0), isTwoAddress(false), isCommutable(false), hasImplicitDefs(false), isPending(false), isAvailable(false), isScheduled(false), CycleBound(0), Cycle(0), Depth(0), Height(0), @@ -147,19 +144,14 @@ namespace llvm { return false; Preds.push_back(SDep(N, PhyReg, Cost, isCtrl, isSpecial)); N->Succs.push_back(SDep(this, PhyReg, Cost, isCtrl, isSpecial)); - if (isCtrl) { - if (!N->isScheduled) - ++NumChainPredsLeft; - if (!isScheduled) - ++N->NumChainSuccsLeft; - } else { + if (!isCtrl) { ++NumPreds; ++N->NumSuccs; - if (!N->isScheduled) - ++NumPredsLeft; - if (!isScheduled) - ++N->NumSuccsLeft; } + if (!N->isScheduled) + ++NumPredsLeft; + if (!isScheduled) + ++N->NumSuccsLeft; return true; } @@ -178,19 +170,14 @@ namespace llvm { } assert(FoundSucc && "Mismatching preds / succs lists!"); Preds.erase(I); - if (isCtrl) { - if (!N->isScheduled) - --NumChainPredsLeft; - if (!isScheduled) - --NumChainSuccsLeft; - } else { + if (!isCtrl) { --NumPreds; --N->NumSuccs; - if (!N->isScheduled) - --NumPredsLeft; - if (!isScheduled) - --N->NumSuccsLeft; } + if (!N->isScheduled) + --NumPredsLeft; + if (!isScheduled) + --N->NumSuccsLeft; return true; } return false; |