diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2015-10-19 18:30:27 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2015-10-19 18:30:27 +0000 |
commit | 23920ec95da5b2e3e4c6109e6e64cb3e7f95ed16 (patch) | |
tree | e31edc4ee1701837e1bc6ff1ed1f35ec41abcf5d /llvm/lib/Target/Hexagon/HexagonISelLowering.cpp | |
parent | 2002aadaadcf28f669a9bacea85973afea812cda (diff) | |
download | bcm5719-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.cpp | 5 |
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 |