This is an archive of the discontinued LLVM Phabricator instance.

[OptBisect] Add flag to print IR when opt-bisect kicks in
ClosedPublic

Authored by aeubanks on Sep 13 2022, 2:04 PM.

Details

Summary

-opt-bisect-print-ir-path=foo will dump the IR to foo when opt-bisect-limit starts skipping passes.

Currently we don't print the IR if the opt-bisect-limit is higher than the total number of times opt-bisect is called.

This makes getting the IR right before a bad transform easier.

Diff Detail

Event Timeline

aeubanks created this revision.Sep 13 2022, 2:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 13 2022, 2:04 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
aeubanks requested review of this revision.Sep 13 2022, 2:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 13 2022, 2:04 PM
hans accepted this revision.Sep 14 2022, 1:18 PM

lgtm

Should this be documented somewhere?

This revision is now accepted and ready to land.Sep 14 2022, 1:18 PM
aeubanks updated this revision to Diff 460201.Sep 14 2022, 1:35 PM

add flag to documentation

This revision was landed with ongoing or failed builds.Sep 14 2022, 1:49 PM
This revision was automatically updated to reflect the committed changes.