This is an archive of the discontinued LLVM Phabricator instance.

llvm-reduce -- make it faster by running function passes first
ClosedPublic

Authored by regehr on Aug 2 2022, 8:47 AM.

Details

Reviewers
aeubanks
fhahn
Summary

this changes llvm-reduce's phase ordering to run the delta passes that remove function bodies first. on a collection of real 77 IR modules that I'm using to test reduction speed/power, this reduces llvm-reduce's execution time by 20%.

the rationale for this change is simple: a delta debugger wins when it eliminates as much junk as possible very early. the passes that this patch puts at the front of the phase ordering are the ones that accomplish this.

Diff Detail

Event Timeline

regehr created this revision.Aug 2 2022, 8:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2022, 8:47 AM
regehr requested review of this revision.Aug 2 2022, 8:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2022, 8:47 AM
aeubanks accepted this revision.Aug 2 2022, 9:03 AM
This revision is now accepted and ready to land.Aug 2 2022, 9:03 AM