This is an archive of the discontinued LLVM Phabricator instance.

Skip CFI for dead functions.
ClosedPublic

Authored by eugenis on May 30 2017, 4:25 PM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

pcc added inline comments.Jun 1 2017, 1:23 PM
lib/Transforms/IPO/WholeProgramDevirt.cpp
1327 ↗(On Diff #100797)

Is there test coverage for the not-live case here?

test/Transforms/LowerTypeTests/Inputs/use-typeid1-dead.yaml
6

Just guid("typeid1") I think?

eugenis updated this revision to Diff 101103.Jun 1 2017, 2:09 PM
eugenis retitled this revision from Skip CFI and WholeProgramDevirt for dead functions. to Skip CFI for dead functions..

Remove WholeProgramDevirt part for now as I don't have a good test case for it.

eugenis marked an inline comment as done.Jun 1 2017, 2:10 PM
pcc accepted this revision.Jun 1 2017, 3:15 PM

LGTM

This revision is now accepted and ready to land.Jun 1 2017, 3:15 PM
eugenis closed this revision.Jun 2 2017, 11:46 AM

Submitted in r304578.