[PATCH] D103220: Support stripping indirectly referenced DILocations from !llvm.loop metadata in stripDebugInfo()

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 26 19:10:54 PDT 2021


aprantl created this revision.
aprantl added reviewers: vsk, steven_wu, dsanders.
Herald added subscribers: dexonsmith, hiraditya.
aprantl requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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


https://reviews.llvm.org/D103220

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103220.348144.patch
Type: text/x-patch
Size: 8862 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210527/038dd81b/attachment.bin>


More information about the llvm-commits mailing list