summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorNirav Dave <niravd@google.com>2016-06-15 14:50:08 +0000
committerNirav Dave <niravd@google.com>2016-06-15 14:50:08 +0000
commita72e308403bd2e5e46902fd2ad259f0ad57d99cd (patch)
treea1a35b928c8b56e8d4c7e4c08d362be37ba00ce0 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parent0db7be886e3b9e4b1ab4fd3b90c50227e126b3f7 (diff)
downloadbcm5719-llvm-a72e308403bd2e5e46902fd2ad259f0ad57d99cd.tar.gz
bcm5719-llvm-a72e308403bd2e5e46902fd2ad259f0ad57d99cd.zip
Preserve DebugInfo when replacing values in DAGCombiner
[DAG] Previously debug values would transfer debuginfo for the selected start node for a replacement which allows for debug to be dropped. Push debug value transfer to occur with node/value replacement in SelectionDAG, remove now extraneous transfers of debug values. This refixes PR9817 which was being incompletely checked in the testsuite. Reviewers: jyknight Subscribers: dblaikie, llvm-commits Differential Revision: http://reviews.llvm.org/D21037 llvm-svn: 272792
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index fcc8b96578f..567c42c77cb 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -1331,8 +1331,6 @@ void DAGCombiner::Run(CombineLevel AtLevel) {
DEBUG(dbgs() << " ... into: ";
RV.getNode()->dump(&DAG));
- // Transfer debug value.
- DAG.TransferDbgValues(SDValue(N, 0), RV);
if (N->getNumValues() == RV.getNode()->getNumValues())
DAG.ReplaceAllUsesWith(N, RV.getNode());
else {
OpenPOWER on IntegriCloud