This is an archive of the discontinued LLVM Phabricator instance.

[llvm-reduce] Fail verifier less when removing debug metadata
ClosedPublic

Authored by aeubanks on Oct 7 2022, 2:41 PM.

Details

Summary

Without this patch, we hit the following a lot:
"llvm.dbg.declare intrinsic requires a !dbg attachment"
"DICompileUnit not listed in llvm.dbg.cu"

Diff Detail

Event Timeline

aeubanks created this revision.Oct 7 2022, 2:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 7 2022, 2:41 PM
aeubanks requested review of this revision.Oct 7 2022, 2:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 7 2022, 2:41 PM
dblaikie accepted this revision.Oct 7 2022, 3:28 PM

Sounds good to me - wouldn't mind slrightly more testing, but not mandatory.

llvm/test/tools/llvm-reduce/debug-metadata-verifier.ll
3

Might be worth checking for the dbg.cu and dbg.declare this patch is about?

This revision is now accepted and ready to land.Oct 7 2022, 3:28 PM
aeubanks added inline comments.Oct 7 2022, 4:22 PM
llvm/test/tools/llvm-reduce/debug-metadata-verifier.ll
3

done