[ThinLTO] Fix missing call graph edges for calls with bitcasts.
authorVolodymyr Sapsai <vsapsai@apple.com>
Fri, 10 Nov 2017 00:47:47 +0000 (00:47 +0000)
committerVolodymyr Sapsai <vsapsai@apple.com>
Fri, 10 Nov 2017 00:47:47 +0000 (00:47 +0000)
commita73960213eac65cbb099a52318035cf4539b7703
tree8b656ede5a98dc9b870aab6a7d30fe0834e9e4ef
parentc183e2c33b0581390e678e74bcfc83b3a34f3350
[ThinLTO] Fix missing call graph edges for calls with bitcasts.

This change doesn't fix the root cause of the miscompile PR34966 as the root
cause is in the linker ld64. This change makes call graph more complete
allowing to have better module imports/exports.

rdar://problem/35344706

Reviewers: tejohnson

Reviewed By: tejohnson

Subscribers: mehdi_amini, inglorion, eraman, llvm-commits, hiraditya

Differential Revision: https://reviews.llvm.org/D39356

llvm-svn: 317853
llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
llvm/test/Bitcode/thinlto-function-summary-callgraph-cast.ll [new file with mode: 0644]