Fix PR1975: dag isel emitter produces patterns that isel wrong flag result.
[oota-llvm.git] / lib / CodeGen / SelectionDAG / SelectionDAG.cpp
index 11b289bf8f323f401c7d328749b43e0037c3efaf..4b68fb7e95fc35482946b4356fd1dc43aefd75c6 100644 (file)
@@ -3183,10 +3183,6 @@ SDNode *SelectionDAG::getTargetNode(unsigned Opcode,
 void SelectionDAG::ReplaceAllUsesWith(SDOperand FromN, SDOperand To,
                                       DAGUpdateListener *UpdateListener) {
   SDNode *From = FromN.Val;
-  // FIXME: This works around a dag isel emitter bug.
-  if (From->getNumValues() == 1 && FromN.ResNo != 0)
-    return;  // FIXME: THIS IS BOGUS
-  
   assert(From->getNumValues() == 1 && FromN.ResNo == 0 && 
          "Cannot replace with this method!");
   assert(From != To.Val && "Cannot replace uses of with self");