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
commit57ff15825585a80e4e5fad2521d457d3efe5769a (patch)
tree9de092336a385ab88891e98fb227655d477d998f
parentbb6a574def37639ecc2b723e2af41b71c832bc51 (diff)
downloadllvm-57ff15825585a80e4e5fad2521d457d3efe5769a.tar.gz
Remove dead code.
llvm-svn: 41899
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
index 11c69a4e2934..070fdbdc705c 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
+++ b/llvm/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()) {