commit | 31490baf38680012000890dcb11ac4914ec94911 | [log] [tgz] |
---|---|---|
author | Hal Finkel <hfinkel@anl.gov> | Mon Apr 16 03:33:22 2012 +0000 |
committer | Hal Finkel <hfinkel@anl.gov> | Mon Apr 16 03:33:22 2012 +0000 |
tree | 1f55e887007a2ccae6fd93aadc091af690d4680c | |
parent | 70daea90afc167a010a1851defda01d7e0eb45eb [diff] [blame] |
Remove dead SD nodes after the combining pass. Fixes PR12201. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154786 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index d1b998f..0914c66 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -1080,6 +1080,7 @@ // If the root changed (e.g. it was a dead load, update the root). DAG.setRoot(Dummy.getValue()); + DAG.RemoveDeadNodes(); } SDValue DAGCombiner::visit(SDNode *N) {