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 | 31490baf38680012000890dcb11ac4914ec94911 (patch) | |
tree | 1f55e887007a2ccae6fd93aadc091af690d4680c /lib/CodeGen | |
parent | 70daea90afc167a010a1851defda01d7e0eb45eb (diff) |
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index d1b998f8d8..0914c66276 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/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) { |