summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
diff options
context:
space:
mode:
authorNirav Dave <niravd@google.com>2016-06-22 19:03:26 +0000
committerNirav Dave <niravd@google.com>2016-06-22 19:03:26 +0000
commit96beb7dee54e2e6cb6b28ea4bb90afd2f2f55d86 (patch)
treea934b577178c3a7f7bcf0f6994c0ce29629e6199 /llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
parent0526e7f8d907840f1aa600ee366006eec3ecba4f (diff)
downloadbcm5719-llvm-96beb7dee54e2e6cb6b28ea4bb90afd2f2f55d86.tar.gz
bcm5719-llvm-96beb7dee54e2e6cb6b28ea4bb90afd2f2f55d86.zip
Preserve DebugInfo when replacing values in DAGCombiner
Recommiting after fixing over-aggressive assertion [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: 273456
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonISelLowering.cpp')
-rw-r--r--llvm/lib/Target/Hexagon/HexagonISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
index 42feffc3201..1d23a74d984 100644
--- a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
@@ -1057,8 +1057,8 @@ HexagonTargetLowering::LowerDYNAMIC_STACKALLOC(SDValue Op,
SDValue AC = DAG.getConstant(A, dl, MVT::i32);
SDVTList VTs = DAG.getVTList(MVT::i32, MVT::Other);
SDValue AA = DAG.getNode(HexagonISD::ALLOCA, dl, VTs, Chain, Size, AC);
- if (Op.getNode()->getHasDebugValue())
- DAG.TransferDbgValues(Op, AA);
+
+ DAG.ReplaceAllUsesOfValueWith(Op, AA);
return AA;
}
OpenPOWER on IntegriCloud