Revert r111394. It was too aggressive.
[oota-llvm.git] / lib / CodeGen / SplitKit.cpp
index dae282dfce670ed02981b8c7b80d2c3081b95c41..b081bf37337cb66e24df56bdf73b4ec05dc2c416 100644 (file)
@@ -446,9 +446,9 @@ VNInfo *LiveIntervalMap::mapValue(const VNInfo *ParentVNI, SlotIndex Idx) {
     }
 
     // No need to search the children, we found a dominating value.
-    // MBB is either the found dominating value, or the last phi-def we created.
-    // Either way, the children of MBB would be shadowed, so don't search them.
-    IDFI.skipChildren(MBB);
+    // FIXME: We could prune up to the last phi-def we inserted, need df_iterator
+    // for that.
+    IDFI.skipChildren();
   }
 
   // The search should at least find a dominating value for IdxMBB.