llvm-project/llvm/test/DebugInfo/AArch64
Orlando Cazalet-Hyams 1251cac62a [DebugInfo@O2][LoopVectorize] pr39024: Vectorized code linenos step through loop even after completion
Summary:
Bug: https://bugs.llvm.org/show_bug.cgi?id=39024

The bug reports that a vectorized loop is stepped through 4 times and each step through the loop seemed to show a different path. I found two problems here:

A) An incorrect line number on a preheader block (for.body.preheader) instruction causes a step into the loop before it begins.
B) Instructions in the middle block have different line numbers which give the impression of another iteration.

In this patch I give all of the middle block instructions the line number of the scalar loop latch terminator branch. This seems to provide the smoothest debugging experience because the vectorized loops will always end on this line before dropping into the scalar loop. To solve problem A I have altered llvm::SplitBlockPredecessors to accommodate loop header blocks.

I have set up a separate review D61933 for a fix which is required for this patch.

Reviewers: samsonov, vsk, aprantl, probinson, anemet, hfinkel, jmorse

Reviewed By: hfinkel, jmorse

Subscribers: jmorse, javed.absar, eraman, kcc, bjope, jmellorcrummey, hfinkel, gbedwell, hiraditya, zzheng, llvm-commits

Tags: #llvm, #debug-info

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

> llvm-svn: 363046

llvm-svn: 363786
2019-06-19 10:50:47 +00:00
..
asan-stack-vars.mir Describe stack-id as an enum 2019-06-17 09:13:29 +00:00
big-endian-dump.ll
big-endian.ll
bitfields.ll
cfi-eof-prologue.ll [GlobalISel][IRTranslator] Add debug loc with line 0 to constants emitted into the entry block. 2019-06-13 22:15:35 +00:00
coalescing.ll
compiler-gen-bbs-livedebugvalues.mir Describe stack-id as an enum 2019-06-17 09:13:29 +00:00
constant-dbgloc.ll
dagcombine-zext.ll
dbg-value-i8.ll
dbg-value-i16.ll
dwarfdump.ll llvm-dwarfdump: Dump the section name/number for addr attributes 2018-12-22 20:34:58 +00:00
eh_frame.s
eh_frame_personality.ll
frameindices.ll Replace "no-frame-pointer-*" function attributes with "frame-pointer" 2019-01-14 10:55:55 +00:00
inlined-argument.ll [DebugInfo@O2][LoopVectorize] pr39024: Vectorized code linenos step through loop even after completion 2019-06-19 10:50:47 +00:00
line-header.ll Revert "DwarfDebug: Pick next location in case of missing location at block begin" 2018-10-11 23:37:58 +00:00
lit.local.cfg [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
little-endian-dump.ll
machine-outliner.ll
processes-relocations.ll
prologue_end.ll Replace "no-frame-pointer-*" function attributes with "frame-pointer" 2019-01-14 10:55:55 +00:00
return-address-signing.ll [Dwarf/AArch64] Return address signing B key dwarf support 2018-12-21 10:45:08 +00:00
struct_by_value.ll [DebugInfo] Terminate all location-lists at end of block 2019-06-10 15:23:46 +00:00
tls-at-location.ll Remove irrelevant references to legacy git repositories from 2019-01-15 16:18:52 +00:00