[SDAG] Re-instate r215611 with a fix to a pesky X86 DAG combine.
[oota-llvm.git] / lib / CodeGen / SelectionDAG / LegalizeDAG.cpp
index 00d9ba071ef0e64959e1ff6f7b53fafc0314d913..ed3f770afec3794f4d8b7d630716aeed227ba101 100644 (file)
@@ -156,6 +156,8 @@ public:
   // Node replacement helpers
   void ReplacedNode(SDNode *N) {
     LegalizedNodes.erase(N);
+    if (UpdatedNodes)
+      UpdatedNodes->insert(N);
   }
   void ReplaceNode(SDNode *Old, SDNode *New) {
     DEBUG(dbgs() << " ... replacing: "; Old->dump(&DAG);