[LTO][WPD] Ignore unreachable function by analyzing IR.
authorminglotus-6 <mingmingl@google.com>
Mon, 20 Dec 2021 20:44:05 +0000 (20:44 +0000)
committerminglotus-6 <mingmingl@google.com>
Tue, 21 Dec 2021 18:13:03 +0000 (18:13 +0000)
commit9c49f8d70592cd421691a194da259652fc7aec35
treecd0d7666ca63a4d5af94211a672cc32e02219e74
parent6683099a0d0a17fcde3576733e9c85e3b5f71de5
[LTO][WPD] Ignore unreachable function by analyzing IR.

In regular LTO, analyze IR and discard unreachable functions when finding virtual call targets.

Differential Revision: https://reviews.llvm.org/D116056
llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
llvm/test/Transforms/WholeProgramDevirt/devirt_single_after_filtering_unreachable_function.ll [new file with mode: 0644]