This is an archive of the discontinued LLVM Phabricator instance.

[BranchRelaxation] Strengthen post condition assertions
ClosedPublic

Authored by reames on Jan 27 2023, 11:47 AM.

Details

Summary

The whole point of this pass is to rewrite branches so that branches are in bounds. We should assert that we succeeded rather than just that we kept our internal data structure in sync.

Diff Detail

Event Timeline

reames created this revision.Jan 27 2023, 11:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 27 2023, 11:47 AM
reames requested review of this revision.Jan 27 2023, 11:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 27 2023, 11:47 AM
reames updated this revision to Diff 492877.Jan 27 2023, 12:09 PM

Add back faulting_op special case since my attempt at doing an NFC cleanup wasn't NFC on all targets.

asb accepted this revision.Jan 31 2023, 7:44 AM

LGTM.

This revision is now accepted and ready to land.Jan 31 2023, 7:44 AM
This revision was automatically updated to reflect the committed changes.