[PATCH] D61933: [DebugInfo] Update loop metadata for inlined loops
Orlando Cazalet-Hyams via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 15 09:19:34 PDT 2019
Orlando marked an inline comment as done.
Orlando added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/InlineFunction.cpp:1380
+ // Update the DILocations to encode the inlined-at metadata.
+ if (DILocation *DL = dyn_cast<DILocation>(MD))
+ MDs.push_back(inlineDebugLoc(DL, InlinedAt, Ctx, IANodes));
----------------
aprantl wrote:
> what can this be except a DILocation?
It can be some other loop metadata.
The test inlined-loop-metadata.ll provides an example:
```
...
br i1 %13, label %middle.block, label %vector.body, !llvm.loop !15
...
!10 = !DILocation(line: 4, scope: !8)
!15 = distinct !{!15, !10, !16, !17}
!16 = !DILocation(line: 6, scope: !8)
!17 = !{!"llvm.loop.isvectorized", i32 1}
```
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61933/new/
https://reviews.llvm.org/D61933
More information about the llvm-commits
mailing list