llvm-project/llvm/test/DebugInfo/Generic
OCHyams 84a71d5259 [DebugInfo] Fix line number attribution in mldst-motion
Taking the example from the test included in this patch:

$ cat test.cpp -n
     1	void fun(int *a, int cond) {
     2	  if (cond)
     3	    a[1] = 1;
     4	  else
     5	    a[1] = 2;
     6	}

mldst-motion will merge and sink the stores in if.then and if.else into
if.end. The resultant PHI, gep and store should be attributed line zero
with the innermost common scope rather than picking a debug location from
one of the original stores.

Reviewed By: djtodoro

Differential Revision: https://reviews.llvm.org/D132741
2022-08-30 10:03:53 +01:00
..
2009-10-16-Phi.ll
2009-11-03-InsertExtractValue.ll
2009-11-05-DeadGlobalVariable.ll
2009-11-06-NamelessGlobalVariable.ll
2009-11-10-CurrentFn.ll
2010-01-05-DbgScope.ll
2010-03-12-llc-crash.ll
2010-03-19-DbgDeclare.ll
2010-03-24-MemberFn.ll
2010-04-06-NestedFnDbgInfo.ll [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
2010-04-19-FramePtr.ll [AIX] Disable tests failing due to missing DWARF sections 2021-10-08 12:06:38 -04:00
2010-05-03-DisableFramePtr.ll
2010-05-03-OriginDIE.ll [XCore][Test] XFAIL tests requiring 8-byte stack alignment. 2021-03-24 09:12:53 +00:00
2010-05-10-MultipleCU.ll
2010-06-29-InlinedFnLocalVar.ll [Debug-Info]update section name to match AIX behaviour; nfc 2021-05-24 04:33:41 -04:00
2010-10-01-crash.ll
DICommonBlock.ll
PR20038.ll [DebugInfo][test] Simplify/improve a few tests using --impicit-check-not=DW_TAG. NFC 2021-11-13 17:31:54 +02:00
PR37395.ll
accel-table-hash-collisions.ll [AIX] Disable tests failing due to missing DWARF sections 2021-10-08 12:06:38 -04:00
address_space_rvalue.ll [AIX] Disable tests failing due to missing DWARF sections 2021-10-08 12:06:38 -04:00
array.ll [Debug-Info]update section name to match AIX behaviour; nfc 2021-05-24 04:33:41 -04:00
block-asan.ll [DebugInfo][test] Delete a legacy asan test 2022-04-21 19:21:27 -07:00
bug_null_debuginfo.ll
callsite-attr-invalid.ll
constant-pointers.ll [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
containing-type-extension.ll llvm-dwarf-dump: include type name for AT_containing_type 2022-06-18 00:52:34 +00:00
cross-cu-inlining.ll [AIX] Disable failing tests because of missing DWARF sections 2021-12-09 09:05:36 -05:00
cross-cu-linkonce-distinct.ll Revert "[DwarfDebug] Support emitting function-local declaration for a lexical block" & dependent patches 2021-12-24 00:47:04 +02:00
cross-cu-linkonce.ll [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
cu-range-hole.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
cu-ranges.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
dbg-at-specficiation.ll
dbg-value-lower-linenos.ll
dead-argument-order.ll [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
debug-info-always-inline.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
debug-info-enum.ll
debug-info-qualifiers.ll Revert "[DwarfDebug] Support emitting function-local declaration for a lexical block" & dependent patches 2021-12-24 00:47:04 +02:00
debug-label-inline.ll Generalize DWARF tests that expect DW_FORM_strp 2021-10-26 23:42:50 -04:00
debug-label-mi.ll
debug-label-opt.ll
debug-label.ll Adapt test to be compatible with AIX 2021-12-16 12:35:16 -05:00
debug-names-empty-cu.ll
debug-names-empty-name.ll [AIX] Disable tests failing due to missing DWARF sections 2021-10-08 12:06:38 -04:00
debug-names-hash-collisions.ll [AIX] Disable tests failing due to missing DWARF sections 2021-10-08 12:06:38 -04:00
debug-names-index-type.ll [AIX] Disable tests failing due to missing DWARF sections 2021-10-08 12:06:38 -04:00
debug-names-linkage-name.ll Revert "[DwarfDebug] Support emitting function-local declaration for a lexical block" & dependent patches 2021-12-24 00:47:04 +02:00
debug-names-many-cu.ll [AIX] Disable tests failing due to missing DWARF sections 2021-10-08 12:06:38 -04:00
debug-names-name-collisions.ll [AIX] Disable tests failing due to missing DWARF sections 2021-10-08 12:06:38 -04:00
debug-names-one-cu.ll [AIX] Disable tests failing due to missing DWARF sections 2021-10-08 12:06:38 -04:00
debug-names-two-cu.ll [AIX] Disable tests failing due to missing DWARF sections 2021-10-08 12:06:38 -04:00
debug_value_list.ll [Bitcode] Ensure DIArgList in bitcode has no null or forward metadata refs 2021-04-22 12:03:33 +01:00
debuginfofinder-forward-declaration.ll [test] Cleanup legacy PM tests in llvm/test/DebugInfo 2021-09-04 15:52:43 -07:00
debuginfofinder-imported-global-variable.ll [test] Cleanup legacy PM tests in llvm/test/DebugInfo 2021-09-04 15:52:43 -07:00
debuginfofinder-inlined-cu.ll [test] Cleanup legacy PM tests in llvm/test/DebugInfo 2021-09-04 15:52:43 -07:00
debuginfofinder-multiple-cu.ll [test] Cleanup legacy PM tests in llvm/test/DebugInfo 2021-09-04 15:52:43 -07:00
def-line.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
directives-only.ll [AIX] Disable tests failing due to lack of .loc and .file directive support 2021-10-08 11:55:12 -04:00
discriminated-union.ll
discriminator.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
disubrange_vla.ll [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
disubrange_vla_no_dbgvalue.ll
dwarf-public-names.ll
empty.ll [AIX] Disable empty.ll test using unsupported split dwarf 2021-11-28 21:55:27 -05:00
enum-types.ll [AIX] Bump DWARF versions to 3 because XCOFF64 requires DWARF64 2022-02-01 11:18:19 -05:00
enum.ll [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
export-symbol-anonymous-class.ll [AIX] Disable tests failing due to missing DWARF sections 2021-10-08 12:06:38 -04:00
extended-loc-directive.ll [AIX] Disable tests failing due to lack of .loc and .file directive support 2021-10-08 11:55:12 -04:00
fortran-subprogram-attr.ll [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
global-sra-array.ll [GlobalOpt] Make global SRA offset based 2022-01-17 09:28:36 +01:00
global-sra-single-member.ll
global-sra-struct-fwd-decl.ll
global-sra-struct-zero-length.ll
global-sra-struct.ll
global.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
gmlt.test
gmlt_profiling.ll [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
gvn.ll
imported-name-inlined.ll Revert "[DwarfDebug] Support emitting function-local declaration for a lexical block" & dependent patches 2021-12-24 00:47:04 +02:00
incorrect-variable-debugloc.ll Revert "[DwarfDebug] Support emitting function-local declaration for a lexical block" & dependent patches 2021-12-24 00:47:04 +02:00
incorrect-variable-debugloc1.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
indvar-discriminator.ll
inheritance.ll [DebugInfo] Avoid ptrtoint expression in generic test 2022-07-25 11:20:36 +02:00
inline-debug-info-multiret.ll
inline-debug-info.ll
inline-debug-loc.ll
inline-no-debug-info.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
inline-scopes.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
inlined-arguments.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
inlined-strings.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
inlined-vars.ll
instcombine-phi.ll
instcombine-replaced-select-with-operand.ll [DebugInfo] Replace debug uses in replaceUsesOutsideBlock 2021-04-19 11:06:53 +01:00
invalid.ll
licm-hoist-debug-loc.ll
line-table-addrx.ll [AIX] Disable failing tests because of missing DWARF sections 2021-12-09 09:05:36 -05:00
linear-dbg-value.ll [DebugInfo][NFC] Force some tests to not use instruction-referencing 2021-11-17 11:51:29 +00:00
linkage-name-abstract.ll [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
lit.local.cfg [NVPTX][tests] Do not run tests that require direct object generation 2022-03-22 16:46:48 +04:00
location-verifier.ll
lto-comp-dir.ll [AIX] XFAIL lto-comp-dir.ll for lack of .file directive support 2021-11-16 09:15:00 -05:00
mainsubprogram.ll [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
mem2reg-promote-alloca-1.ll
mem2reg-promote-alloca-2.ll
mem2reg-promote-alloca-3.ll
member-order.ll [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
member-pointers.ll
missing-abstract-variable.ll [DebugInfo][test] XFAIL DebugInfo/Generic/missing-abstract-variable.ll on SPARC 2022-02-07 12:43:56 +01:00
mldst-motion-dbg.ll [DebugInfo] Fix line number attribution in mldst-motion 2022-08-30 10:03:53 +01:00
multiline.ll [AIX] Disable tests failing due to lack of .loc and .file directive support 2021-10-08 11:55:12 -04:00
namespace.ll [AIX] Bump DWARF versions to 3 because XCOFF64 requires DWARF64 2022-02-01 11:18:19 -05:00
namespace_function_definition.ll [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
namespace_inline_function_definition.ll [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
no-empty-child-vars.ll [DebugInfo][test] XFAIL DebugInfo/Generic/no-empty-child-vars.ll on SPARC 2022-02-21 11:23:15 +01:00
noscopes.ll
pass-by-value.ll [NFC][tests] Remove XFAIL for AIX for passing tests 2022-07-20 13:57:11 -04:00
piece-verifier.ll
pr40628.ll
ptrsize.ll
recursive_inlining.ll [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
restrict.ll [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
simplifycfg_sink_last_inst.ll
skeletoncu.ll
sroa-larger.ll
sroa-samesize.ll
store-tail-merge.ll
string-offsets-form.ll [AIX] Disable tests failing due to missing DWARF sections 2021-10-08 12:06:38 -04:00
sugared-constants.ll
template-recursive-void.ll
thrownTypes.ll [DWARF] Standardize checks and remove verbose where possible in DWARF tests 2021-10-31 09:49:10 -04:00
tu-composite.ll llvm-dwarf-dump: include type name for AT_containing_type 2022-06-18 00:52:34 +00:00
tu-member-pointer.ll [AIX] Bump DWARF versions to 3 because XCOFF64 requires DWARF64 2022-02-01 11:18:19 -05:00
two-cus-from-same-file.ll
typedef.ll
unconditional-branch.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
univariant-discriminated-union.ll
varargs.ll [AIX] Bump DWARF versions to 3 because XCOFF64 requires DWARF64 2022-02-01 11:18:19 -05:00
verifier-invalid-disubprogram.ll
version.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
virtual-index.ll
volatile-alloca.ll