This is an archive of the discontinued LLVM Phabricator instance.

[clang][LTO] Add flag to run verifier after every pass
ClosedPublic

Authored by aeubanks on Jun 21 2023, 2:16 PM.

Details

Summary

Helps with debugging issues caught by the verifier.

Plumbed through both normal clang compile and ThinLTO.

Diff Detail

Event Timeline

aeubanks created this revision.Jun 21 2023, 2:16 PM
aeubanks requested review of this revision.Jun 21 2023, 2:16 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 21 2023, 2:16 PM
tejohnson added inline comments.Jun 22 2023, 7:03 AM
clang/test/CodeGen/verify-each.c
6

Huh, really surprised we are never normally running the verifier through clang! How did we hit the verification error you used this to narrow down in the first place?

15

Might be slightly more robust to check for one specific opt pass having a verifier run both before and after it, rather than for a single run of the verifier.

aeubanks updated this revision to Diff 533627.Jun 22 2023, 8:32 AM
aeubanks marked an inline comment as done.

update test

clang/test/CodeGen/verify-each.c
6

there is one, but that's a manual run of the verifier pass that doesn't output anything, as opposed to the verifier being run directly by pass instrumentation which does output something when debug logging is on

This revision is now accepted and ready to land.Jun 22 2023, 8:37 AM
This revision was landed with ongoing or failed builds.Jun 22 2023, 8:54 AM
This revision was automatically updated to reflect the committed changes.