[Hexagon] Fix debug information for local objects
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Mon, 19 Oct 2015 18:30:27 +0000 (18:30 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Mon, 19 Oct 2015 18:30:27 +0000 (18:30 +0000)
commitd497ef1505d652e4aa3ada24ece8785955e43c84
tree9fe1c36f34f188e2a01a5fc98e88009671957872
parent6e76a23a66bb474f5f9e49be787eeb768893f551
[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).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250718 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Hexagon/HexagonFrameLowering.cpp
lib/Target/Hexagon/HexagonFrameLowering.h
lib/Target/Hexagon/HexagonISelLowering.cpp
lib/Target/Hexagon/HexagonRegisterInfo.cpp