This is an archive of the discontinued LLVM Phabricator instance.

WholeProgramDevirt: Move logic for finding devirtualizable call sites to Analysis.
ClosedPublic

Authored by pcc on May 5 2016, 5:24 PM.

Details

Summary

The plan is to eventually make this logic simpler, however I expect it to
be a little tricky for the foreseeable future (at least until we're rid of
pointee types), so move it here so that it can be reused to build a summary
index for devirtualization.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc updated this revision to Diff 56372.May 5 2016, 5:24 PM
pcc retitled this revision from to WholeProgramDevirt: Move logic for finding devirtualizable call sites to Analysis..
pcc updated this object.
pcc added reviewers: mehdi_amini, tejohnson.
pcc added a subscriber: llvm-commits.
tejohnson accepted this revision.May 10 2016, 7:56 AM
tejohnson edited edge metadata.

Looks NFC to me. Are there any existing tests or would a unittest for the new Analysis routines be appropriate?

include/llvm/Analysis/BitSetUtils.h
31 ↗(On Diff #56372)

Use doxygen style comments

This revision is now accepted and ready to land.May 10 2016, 7:56 AM
pcc added a comment.May 10 2016, 10:40 AM

Yes, this is covered by the tests for the pass in test/Transforms/WholeProgramDevirt.

This revision was automatically updated to reflect the committed changes.