[PATCH] D99709: [DebugInfo] Avoid generating DW_TAG_GNU_call_site if no DW_TAG_GNU_call_site_parameter present
Alok Kumar Sharma via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 1 02:13:49 PDT 2021
alok created this revision.
alok added reviewers: djtodoro, aprantl, jmorse, SouraVX, jini.susan.george, bhuvanendrakumarn.
alok added a project: debug-info.
Herald added a subscriber: hiraditya.
Herald added a reviewer: sscalpone.
alok requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
There are conditions when DW_TAG_GNU_call_site is generated which has
no child of tag DW_TAG_GNU_call_site_parameter. This information does
not help and only contributes to incresed size of DWARF info.
Below is the test program.
```````````````````````````
subroutine fun (array)
integer :: array (*)
array(5:10) = 1311
array(7) = 1
array(100) = 100
return
end subroutine
program vla
interface
subroutine fun (array)
integer :: array (*)
end subroutine
end interface
integer :: sub_arr(42)
sub_arr(:) = 3
call fun(sub_arr)
end program vla
```````````````````````````
which produces,
0x00000060: DW_TAG_GNU_call_site
DW_AT_abstract_origin (0x00000088 "fun")
DW_AT_low_pc (0x000000000000007a)
0x0000006d: NULL
```````````````````````````
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D99709
Files:
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/test/DebugInfo/X86/dwarf-empty_callsite.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99709.334621.patch
Type: text/x-patch
Size: 8948 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210401/492af338/attachment.bin>
More information about the llvm-commits
mailing list