[PATCH] D73094: [WPD] Allow load/save bitcoded index when running opt -wholeprogramdevirt
Eugene Leviant via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 07:55:45 PST 2020
evgeny777 added a comment.
> One issue with taking combined indexes in testing is the handling of module paths when there are locals (won't be hit by the included test which doesn't contain any). E.g. in WPD if we try to promote when the target is a local function, we attempt to get its promoted global name:
Honestly, I don't understand how we can step on this. The piece of code you've shown is from DevirtIndex::trySingleImplDevirt. There is no way `opt -wholeprogramdevirt` can call it, because it uses DevirtModule::trySingleImplDevirt and the latter doesn't have to deal with internal virtual functions, because they're promoted by ThinLTOBitcodeWriter (in order to export declarations to regular LTO module).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73094/new/
https://reviews.llvm.org/D73094
More information about the llvm-commits
mailing list