This is an archive of the discontinued LLVM Phabricator instance.

[bugpoint] Simplify the global initializer reducer, NFC
ClosedPublic

Authored by vsk on Feb 8 2018, 11:35 AM.

Details

Summary

Fix the comments, use early exits, use unique_ptr, and use ranged for
loops.

This is in preparation for a global *variable* reducer, which, with any
luck will help us clean up test cases.

Diff Detail

Repository
rL LLVM

Event Timeline

vsk created this revision.Feb 8 2018, 11:35 AM
MatzeB accepted this revision.Feb 8 2018, 11:57 AM

LGTM
...and except maybe for the renaming of the class this all looks like trivial changes that are fine with post-commit review.

This revision is now accepted and ready to land.Feb 8 2018, 11:57 AM
This revision was automatically updated to reflect the committed changes.