[SDAG] Let the DAG combiner take care of dead nodes rather than manually
authorChandler Carruth <chandlerc@gmail.com>
Sat, 2 Aug 2014 00:19:10 +0000 (00:19 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 2 Aug 2014 00:19:10 +0000 (00:19 +0000)
deleting them. This already seems to work, as no tests fail without
this.

llvm-svn: 214601

llvm/lib/Target/ARM/ARMISelLowering.cpp

index a67c68a..d6120c7 100644 (file)
@@ -8443,8 +8443,6 @@ static SDValue PerformVMOVRRDCombine(SDNode *N,
     if (DCI.DAG.getTargetLoweringInfo().isBigEndian())
       std::swap (NewLD1, NewLD2);
     SDValue Result = DCI.CombineTo(N, NewLD1, NewLD2);
-    DCI.RemoveFromWorklist(LD);
-    DAG.DeleteNode(LD);
     return Result;
   }