From: Chandler Carruth Date: Sat, 2 Aug 2014 00:19:10 +0000 (+0000) Subject: [SDAG] Let the DAG combiner take care of dead nodes rather than manually X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5e3bfde3f4cf642d9b96b27f4e485690576bab75;p=oota-llvm.git [SDAG] Let the DAG combiner take care of dead nodes rather than manually deleting them. This already seems to work, as no tests fail without this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214601 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index a67c68a4317..d6120c776a0 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -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; }