llvm-6502/lib
Alexey Samsonov f4a702c079 Generate better location ranges for some register-described variables.
Don't terminate location ranges for register-described variables
at the end of machine basic block if this register is never modified
in the function body, except for the prologue and epilogue. Prologue
location is guessed by FrameSetup flags on MachineInstructions, while
epilogue location is deduced from debug locations of instructions
in the basic blocks ending with return instructions.

This patch is mostly targeted to fix non-trivial debug locations for
variables addressed via stack and frame pointers.

It is not really a generic fix. We can still produce poor debug info
for register-described variables if this register *is* modified somewhere
in the function, but in unrelated places. This might be the case for the debug
info in optimized binaries (e.g. for local variables in inlined functions).
LiveDebugVariables pass in CodeGen attempts to fix this problem by adjusting
DBG_VALUE instructions, but this pass is tied to greedy register allocator,
which is used in optimized builds only. Proper fix would likely involve
generalizing LiveDebugVariables to all register allocators. See more discussion
in http://reviews.llvm.org/D3933 review thread.

I'm proceeding with this patch to fix immediate severe problems and
important cases, e.g. fix completely broken debug info with AddressSanitizer
and fix PR19307 (missing debug info for by-value std::string arguments).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210492 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-09 21:53:47 +00:00
..
Analysis Remove old fenv.h workaround for a historic clang driver bug 2014-06-09 19:00:52 +00:00
AsmParser Allow aliases to be unnamed_addr. 2014-06-06 01:20:28 +00:00
Bitcode Allow aliases to be unnamed_addr. 2014-06-06 01:20:28 +00:00
CodeGen Generate better location ranges for some register-described variables. 2014-06-09 21:53:47 +00:00
DebugInfo
ExecutionEngine Add a Constant version of stripPointerCasts. 2014-06-04 19:01:48 +00:00
IR InstCombine: Canonicalize addrspacecast between different element types 2014-06-06 21:52:55 +00:00
IRReader
LineEditor
Linker Allow aliases to be unnamed_addr. 2014-06-06 01:20:28 +00:00
LTO Build fix: remove initializeJumpInstrTablesPass() call from LTO 2014-06-07 20:39:53 +00:00
MC Fix gcc warning (enumeral and non-enumeral type in conditional expression) 2014-06-09 07:35:07 +00:00
Object [yaml2obj][obj2yaml] Support ELF symbol's visibility flags (default/hidden/protected). 2014-06-06 07:41:57 +00:00
Option
ProfileData Use an enum class. 2014-06-03 05:12:33 +00:00
Support APFloat: x - NaN needs to flip the signbit of NaN when x is a number. 2014-06-08 16:53:31 +00:00
TableGen Fix typos in tablegen error messages 2014-05-31 05:18:52 +00:00
Target ARM: add VLA extension for WoA Itanium ABI 2014-06-09 20:18:42 +00:00
Transforms Look through addrspacecasts when turning ptr comparisons into 2014-06-09 19:20:29 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile