summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
diff options
context:
space:
mode:
authorNirav Dave <niravd@google.com>2016-06-15 16:08:50 +0000
committerNirav Dave <niravd@google.com>2016-06-15 16:08:50 +0000
commit194cb55f37ad7a7ec7720945743ad3659994c7de (patch)
tree375c9d30491cb9a130306d85a84c5bd54be8e729 /llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
parentfe9e509b0cd29ed56f0d56c5fb5d4eeed2d3e82a (diff)
downloadbcm5719-llvm-194cb55f37ad7a7ec7720945743ad3659994c7de.tar.gz
bcm5719-llvm-194cb55f37ad7a7ec7720945743ad3659994c7de.zip
Revert "Preserve DebugInfo when replacing values in DAGCombiner"
Reverting due to assertion failure in lib/CodeGen/SelectionDAG/InstrEmitter.cpp This reverts commit r272792. llvm-svn: 272799
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 d4a1df57543..b29a43d8aae 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);
-
- DAG.ReplaceAllUsesOfValueWith(Op, AA);
+ if (Op.getNode()->getHasDebugValue())
+ DAG.TransferDbgValues(Op, AA);
return AA;
}
OpenPOWER on IntegriCloud