This is an archive of the discontinued LLVM Phabricator instance.

WholeProgramDevirt: Implement export/import support for VCP.
ClosedPublic

Authored by pcc on Feb 15 2017, 5:54 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc created this revision.Feb 15 2017, 5:54 PM
tejohnson added inline comments.Mar 10 2017, 8:04 AM
llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
763 ↗(On Diff #88635)

I noticed that this function largely duplicates handling in LowerTypeTests.cpp (ditto for exportGlobal). Would it make sense to refactor that into a general helper that can be invoked by both?

pcc added inline comments.Mar 10 2017, 12:08 PM
llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
763 ↗(On Diff #88635)

Maybe. This is a "rule of three" situation, I think -- if we add another pass that needs this, we can factor it out.

tejohnson accepted this revision.Mar 10 2017, 12:17 PM

LGTM

llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
763 ↗(On Diff #88635)

Ok, that's fine.

864 ↗(On Diff #88635)

Make sure to update this to instead use the new markDevirt() before committing.

This revision is now accepted and ready to land.Mar 10 2017, 12:17 PM
This revision was automatically updated to reflect the committed changes.