summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2015-10-19 18:30:27 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2015-10-19 18:30:27 +0000
commit23920ec95da5b2e3e4c6109e6e64cb3e7f95ed16 (patch)
treee31edc4ee1701837e1bc6ff1ed1f35ec41abcf5d /llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
parent2002aadaadcf28f669a9bacea85973afea812cda (diff)
downloadbcm5719-llvm-23920ec95da5b2e3e4c6109e6e64cb3e7f95ed16.tar.gz
bcm5719-llvm-23920ec95da5b2e3e4c6109e6e64cb3e7f95ed16.zip
[Hexagon] Fix debug information for local objects
- Isolate the check for the existence of a stack frame into hasFP. - Implement getFrameIndexReference for DWARF address computation. - Use getFrameIndexReference for offset computation in eliminateFrameIndex. - Preserve debug information for dynamically allocated stack objects. - Prefer FP to access local objects at -O0. - Add experimental code to skip allocframe when not strictly necessary (disabled by default). llvm-svn: 250718
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonISelLowering.cpp')
-rw-r--r--llvm/lib/Target/Hexagon/HexagonISelLowering.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
index c6c44ab76da..4ebc596b34a 100644
--- a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
@@ -851,7 +851,10 @@ HexagonTargetLowering::LowerDYNAMIC_STACKALLOC(SDValue Op,
SDValue AC = DAG.getConstant(A, dl, MVT::i32);
SDVTList VTs = DAG.getVTList(MVT::i32, MVT::Other);
- return DAG.getNode(HexagonISD::ALLOCA, dl, VTs, Chain, Size, AC);
+ SDValue AA = DAG.getNode(HexagonISD::ALLOCA, dl, VTs, Chain, Size, AC);
+ if (Op.getNode()->getHasDebugValue())
+ DAG.TransferDbgValues(Op, AA);
+ return AA;
}
SDValue
OpenPOWER on IntegriCloud