summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-09-12 23:45:46 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-09-12 23:45:46 +0000
commit690013281313284d0ab78f5b6a0ce15a35442c6b (patch)
tree124cdf783767f41a3fcf1c4cca69483b260c2ed2
parent05e69c1f23f1097530fcbc7be97f99d696c019a2 (diff)
downloadllvm-690013281313284d0ab78f5b6a0ce15a35442c6b.tar.gz
Remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41899 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/ScheduleDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
index 11c69a4e2934..070fdbdc705c 100644
--- a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
@@ -182,7 +182,7 @@ void ScheduleDAG::BuildSchedUnits() {
void ScheduleDAG::CalculateDepths() {
std::vector<std::pair<SUnit*, unsigned> > WorkList;
for (unsigned i = 0, e = SUnits.size(); i != e; ++i)
- if (SUnits[i].Preds.size() == 0/* && &SUnits[i] != Entry*/)
+ if (SUnits[i].Preds.size() == 0)
WorkList.push_back(std::make_pair(&SUnits[i], 0U));
while (!WorkList.empty()) {