diff options
| author | Björn Pettersson <bjorn.a.pettersson@ericsson.com> | 2025-09-25 15:20:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-25 13:20:55 +0000 |
| commit | 0956febc4c1d7c66eae0064ce02dbb98880021dc (patch) | |
| tree | 505b45060d16aee9617f58f529c2695170060897 /libcxx/include/__algorithm/minmax.h | |
| parent | 48a0bb71053bf4dd7884cae998ed341df02ecef3 (diff) | |
| download | llvm-0956febc4c1d7c66eae0064ce02dbb98880021dc.zip llvm-0956febc4c1d7c66eae0064ce02dbb98880021dc.tar.gz llvm-0956febc4c1d7c66eae0064ce02dbb98880021dc.tar.bz2 | |
[DebugInfo] Handle followup loop metadata in updateLoopMetadataDebugLocations (#157557)
Inliner/IROutliner/CodeExtractor all uses the
updateLoopMetadataDebugLocations helper in order to modify debug
location related to loop metadata. However, the helper has only
been updating DILocation nodes found as operands to the first level
of the MD_loop metadata. There could however be more DILocations
as part of the various kinds of followup metadata. A typical example
would be llvm.loop metadata like this
!6 = distinct !{!6, !7, !8, !9, !10, !11}
!7 = !DILocation(line: 6, column: 3, scope: !3)
!8 = !DILocation(line: 7, column: 22, scope: !3)
!11 = !{!"llvm.loop.distribute.followup_all", !7, !8, ..., !14}
!14 = !{!"llvm.loop.vectorize.followup_all", !7, !8, ...}
Instead of just updating !7 and !8 in !6, this patch make sure that
we now recursively update the DILocations in !11 and !14 as well.
Fixes #141568
Diffstat (limited to 'libcxx/include/__algorithm/minmax.h')
0 files changed, 0 insertions, 0 deletions
