1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/test/DebugInfo/Generic
Andrea Di Biagio 15b634f111 [InlineFunction] Do not propagate the callsite debug location to instructions inlined from functions with debug info.
When a function F is inlined, InlineFunction extends the debug location of every
instruction inlined from F by adding an InlinedAt.

However, if an instruction has a 'null' debug location, InlineFunction would
propagate the callsite debug location to it. This behavior existed since
revision 210459.

Revision 210459 was originally committed specifically to workaround the lack of
debug information for instructions inlined from intrinsic functions (which are
usually declared with attributes `__always_inline__, __nodebug__`).

The problem with revision 210459 is that it doesn't make any sort of distinction
between instructions inlined from a 'nodebug' function and instructions which
are inlined from a function built with debug info. This issue may lead to
incorrect stepping in the debugger.

This patch works under the assumption that a nodebug function does not have a
DISubprogram. When a function F is inlined into another function G,
InlineFunction checks if F has debug info associated with it.

For nodebug functions, the InlineFunction logic is unchanged (i.e. it would
still propagate the callsite debugloc to the inlined instructions). Otherwise,
InlineFunction no longer propagates the callsite debug location.

Differential Revision: https://reviews.llvm.org/D27462

llvm-svn: 288895
2016-12-07 10:37:26 +00:00
..
2009-10-16-Phi.ll
2009-11-03-InsertExtractValue.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
2009-11-05-DeadGlobalVariable.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
2009-11-06-NamelessGlobalVariable.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
2009-11-10-CurrentFn.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
2010-01-05-DbgScope.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
2010-03-12-llc-crash.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
2010-03-19-DbgDeclare.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
2010-03-24-MemberFn.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
2010-04-06-NestedFnDbgInfo.ll Reverting 268054 & 268063 as they caused PR27579. 2016-04-30 01:44:07 +00:00
2010-04-19-FramePtr.ll DWARF: Omit DW_AT_APPLE attributes (except ObjC ones) when not targeting LLDB 2016-05-24 21:19:28 +00:00
2010-05-03-DisableFramePtr.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
2010-05-03-OriginDIE.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
2010-05-10-MultipleCU.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
2010-06-29-InlinedFnLocalVar.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
2010-10-01-crash.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
accel-table-hash-collisions.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
array.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
block-asan.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
bug_null_debuginfo.ll testcase gardening: update the emissionKind enum to the new syntax. (NFC) 2016-04-01 00:16:49 +00:00
constant-pointers.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
constant-sdnodes-have-dbg-location.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
constantfp-sdnodes-have-dbg-location.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
cross-cu-inlining.ll [DWARF] Force a linkage_name on an inlined subprogram's abstract origin. 2016-04-18 22:41:41 +00:00
cross-cu-linkonce-distinct.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
cross-cu-linkonce.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
cu-range-hole.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
cu-ranges.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
dbg-at-specficiation.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
dead-argument-order.ll DebugInfo: Remove MDString-based type references 2016-04-23 21:08:00 +00:00
debug-info-always-inline.ll
debug-info-qualifiers.ll DebugInfo: Remove MDString-based type references 2016-04-23 21:08:00 +00:00
debuginfofinder-forward-declaration.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
debuginfofinder-multiple-cu.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
def-line.ll DebugInfo: Remove MDString-based type references 2016-04-23 21:08:00 +00:00
discriminator.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
dwarf-public-names.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
empty.ll Reverting back r285355: "Update .debug_line section version information to match DWARF version", while I'm investigating a test failure. 2016-10-27 23:20:19 +00:00
enum-types.ll DebugInfo: Remove MDString-based type references 2016-04-23 21:08:00 +00:00
enum.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
global.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
gmlt.test Testcase cleanup: Remove a redundant test input. 2016-06-04 00:10:17 +00:00
gvn.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
incorrect-variable-debugloc1.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
incorrect-variable-debugloc.ll DebugInfo: Remove MDString-based type references 2016-04-23 21:08:00 +00:00
indvar-discriminator.ll [IndVarSimplify][DebugLoc] When widening the exit loop condition, correctly reuse the debug location of the original comparison. 2016-10-26 10:28:32 +00:00
inheritance.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
inline-debug-info-multiret.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
inline-debug-info.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
inline-debug-loc.ll [InlineFunction] Do not propagate the callsite debug location to instructions inlined from functions with debug info. 2016-12-07 10:37:26 +00:00
inline-no-debug-info.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
inline-scopes.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
inlined-arguments.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
inlined-vars.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
linkage-name-abstract.ll [DWARF] Put linkage-name on abstract origin even when there's a declaration. 2016-12-02 01:55:17 +00:00
lit.local.cfg
location-verifier.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
lto-comp-dir.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
mainsubprogram.ll [DebugInfo] Add support for DW_AT_main_subprogram on subprograms 2016-11-28 21:32:19 +00:00
member-order.ll DebugInfo: Remove MDString-based type references 2016-04-23 21:08:00 +00:00
member-pointers.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
missing-abstract-variable.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
multiline.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
namespace_function_definition.ll [DWARF] Force a linkage_name on an inlined subprogram's abstract origin. 2016-04-18 22:41:41 +00:00
namespace_inline_function_definition.ll [DWARF] Force a linkage_name on an inlined subprogram's abstract origin. 2016-04-18 22:41:41 +00:00
namespace.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
nodebug.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
piece-verifier.ll [DIExpression] Introduce a dedicated DW_OP_LLVM_fragment operation 2016-12-05 18:04:47 +00:00
PR20038.ll DebugInfo: Remove MDString-based type references 2016-04-23 21:08:00 +00:00
ptrsize.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
recursive_inlining.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
restrict.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
skeletoncu.ll Unxfail passing tests on Hexagon 2016-08-19 15:07:58 +00:00
sugared-constants.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
sunk-compare.ll Preserve the debug location when CodeGenPrepare sinks a compare instruction into the 2016-10-06 21:43:45 +00:00
template-recursive-void.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
tu-composite.ll DebugInfo: Remove MDString-based type references 2016-04-23 21:08:00 +00:00
tu-member-pointer.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
two-cus-from-same-file.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
typedef.ll DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
unconditional-branch.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
varargs.ll DebugInfo: Remove MDString-based type references 2016-04-23 21:08:00 +00:00
version.ll [PR27284] Reverse the ownership between DICompileUnit and DISubprogram. 2016-04-15 15:57:41 +00:00
virtual-index.ll DebugInfo: Remove MDString-based type references 2016-04-23 21:08:00 +00:00