Remove dead code.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 12 Sep 2007 23:45:46 +0000 (23:45 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 12 Sep 2007 23:45:46 +0000 (23:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41899 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/ScheduleDAG.cpp

index 11c69a4e29340e6a2837465410dd0934d62f8ca5..070fdbdc705c8d5ef035e4eba104ba9a69d13205 100644 (file)
@@ -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()) {