This is an archive of the discontinued LLVM Phabricator instance.

WholeProgramDevirt: Create bitcast to i8* at each virtual call site.
ClosedPublic

Authored by pcc on Aug 21 2017, 6:19 PM.

Details

Summary

We can't reuse the llvm.assume instruction's bitcast because it may not
dominate every user of the vtable pointer.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc created this revision.Aug 21 2017, 6:19 PM
eugenis accepted this revision.Aug 22 2017, 2:38 PM
This revision is now accepted and ready to land.Aug 22 2017, 2:38 PM
This revision was automatically updated to reflect the committed changes.