This is an archive of the discontinued LLVM Phabricator instance.

[IPO/GlobalDCE] Port to the new PM.
ClosedPublic

Authored by davide on May 1 2016, 6:41 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

davide updated this revision to Diff 55767.May 1 2016, 6:41 PM
davide retitled this revision from to [IPO/GlobalDCE] Convert the pass to use static functions..
davide updated this object.
davide added a reviewer: bogner.
davide added a subscriber: llvm-commits.
davide updated this revision to Diff 55842.May 2 2016, 10:43 AM

Update after Justin's feedback.

mehdi_amini added inline comments.May 2 2016, 10:46 AM
include/llvm/Transforms/IPO/GlobalDCE.h
44 ↗(On Diff #55842)

Can we split what is the "pass" and what is the actual utility?

I think it's possible, but maybe overkill? Probably people with more experience porting passes can tell what they think.

I think this should be the standard layout, it should be the exception to merge together the utility logic and the pass logic.

mehdi_amini added inline comments.May 2 2016, 11:23 AM
include/llvm/Transforms/IPO/GlobalDCE.h
31 ↗(On Diff #55842)

why?

davide retitled this revision from [IPO/GlobalDCE] Convert the pass to use static functions. to [IPO/GlobalDCE] Port to the new PM..May 2 2016, 1:04 PM
davide added a comment.May 2 2016, 1:06 PM

Anything else that needs to be changed before this goes in?

mcrosier added inline comments.
lib/LTO/LTOCodeGenerator.cpp
107 ↗(On Diff #55842)

GlobalDCELegacyPassPass?

davide added inline comments.May 2 2016, 8:02 PM
lib/LTO/LTOCodeGenerator.cpp
107 ↗(On Diff #55842)

Just followed what was already there. See, for example InstructionCombining or GlobalOPT.

This revision was automatically updated to reflect the committed changes.