This patch fixes an oversight in https://reviews.llvm.org/D96181 and also takes into account loop metadata pointing to other MDNodes that point into the debug info.
rdar://78487175
Paths
| Differential D103220
Support stripping indirectly referenced DILocations from !llvm.loop metadata in stripDebugInfo() ClosedPublic Authored by aprantl on May 26 2021, 7:10 PM.
Details Summary This patch fixes an oversight in https://reviews.llvm.org/D96181 and also takes into account loop metadata pointing to other MDNodes that point into the debug info. rdar://78487175
Diff Detail Event TimelineJDevlieghere added inline comments. shafik added inline comments.
This revision is now accepted and ready to land.May 27 2021, 1:19 PM This revision was landed with ongoing or failed builds.May 27 2021, 1:24 PM Closed by commit rGf3869a5c32b7: Support stripping indirectly referenced DILocations from !llvm.loop metadata (authored by aprantl). · Explain Why This revision was automatically updated to reflect the committed changes. Comment Actions Thanks Adrian. + 1 from me as well, FTR.
Revision Contents
Diff 348339 llvm/include/llvm/IR/DebugInfo.h
llvm/lib/IR/DebugInfo.cpp
llvm/lib/Transforms/Utils/CodeExtractor.cpp
llvm/lib/Transforms/Utils/InlineFunction.cpp
llvm/test/Verifier/llvm.loop-cu-strip-indirect.ll
|
clang-tidy: warning: function 'isDILocationReachable' is within a recursive call chain [misc-no-recursion]
not useful