This is an archive of the discontinued LLVM Phabricator instance.

WIP: Try adding method to stop after specific runs of passes
ClosedPublic

Authored by arsenm on Nov 29 2018, 3:16 PM.

Details

Summary

Currently if you use -{start,stop}-{before,after}, it picks
the first instance with the matching pass name. If you run
the same pass multiple times, there's no way to distinguish them.

Allow specifying a run index with ,N to specify which you mean (e.g. -stop-before=si-shrink-instructions,1")

Just handle -stop-after before committing to how this should work

Diff Detail

Event Timeline

arsenm created this revision.Nov 29 2018, 3:16 PM
MatzeB accepted this revision.Dec 2 2018, 6:49 PM

Seems useful. Please implement consistently for all stop/start args and document it somewhere.

This revision is now accepted and ready to land.Dec 2 2018, 6:49 PM
arsenm updated this revision to Diff 176456.Dec 3 2018, 12:36 PM

Make more complete

arsenm updated this revision to Diff 176499.Dec 3 2018, 3:36 PM

Forgot to add file

thegameg accepted this revision.Dec 3 2018, 9:33 PM

LGTM, thanks!

arsenm closed this revision.Dec 4 2018, 9:48 AM

r348285