diff options
| author | Hal Finkel <hfinkel@anl.gov> | 2012-04-16 03:33:22 +0000 |
|---|---|---|
| committer | Hal Finkel <hfinkel@anl.gov> | 2012-04-16 03:33:22 +0000 |
| commit | e0cf6397fd266caeb3e9ca46686264fb6a3f9b3a (patch) | |
| tree | f8087fc7a68caa9f176d9b7a86f224a153c82467 /llvm/lib/CodeGen | |
| parent | 247b4d54edbd610b9dc8907443fdf23081a8df67 (diff) | |
| download | bcm5719-llvm-e0cf6397fd266caeb3e9ca46686264fb6a3f9b3a.tar.gz bcm5719-llvm-e0cf6397fd266caeb3e9ca46686264fb6a3f9b3a.zip | |
Remove dead SD nodes after the combining pass. Fixes PR12201.
llvm-svn: 154786
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index d1b998f8d84..0914c662766 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -1080,6 +1080,7 @@ void DAGCombiner::Run(CombineLevel AtLevel) { // 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) { |

