This is an archive of the discontinued LLVM Phabricator instance.

[NFCI][llvm-reduce] Cleanup Delta passes to use Oracle abstraction
ClosedPublic

Authored by lebedev.ri on Jul 7 2020, 2:44 AM.

Details

Summary

I think, this results in much more understandable/readable flow.
At least the original logic was perhaps the most hard thing for me to grasp when taking an initial look on the delta passes.

Diff Detail

Event Timeline

lebedev.ri created this revision.Jul 7 2020, 2:44 AM
nickdesaulniers accepted this revision.Jul 7 2020, 9:25 AM

Thanks, this makes the delta passes much more readable. It even looks like it might be simpler to avoid some of the local std::vector's now, folding some of the loops.

llvm/tools/llvm-reduce/deltas/Delta.h
53

class

63

explicit

This revision is now accepted and ready to land.Jul 7 2020, 9:25 AM
lebedev.ri updated this revision to Diff 276237.Jul 7 2020, 3:30 PM
lebedev.ri marked 2 inline comments as done.

@nickdesaulniers thank you for taking a look!
Addressed review comments.

This revision was automatically updated to reflect the committed changes.