handle the case where a node can become ready to process
[oota-llvm.git] / lib / CodeGen / SelectionDAG / LegalizeTypes.cpp
index 85a96a8e265d1bac1cc5126ee92bfaff33af833b..76b7527f68b555737a83385f408a2f483c7beb52 100644 (file)
@@ -234,7 +234,8 @@ namespace {
       // Node updates can mean pretty much anything.  It is possible that an
       // operand was set to something already processed (f.e.) in which case
       // this node could become ready.  Recompoute its flags.
-      DTL.ReanalyzeNodeFlags(N);
+      if (N->getNodeId() != DAGTypeLegalizer::ReadyToProcess)
+        DTL.ReanalyzeNodeFlags(N);
     }
   };
 }