[ThinLTO] Record calls to aliases
authorTeresa Johnson <tejohnson@google.com>
Sat, 8 Oct 2016 16:11:42 +0000 (16:11 +0000)
committerTeresa Johnson <tejohnson@google.com>
Sat, 8 Oct 2016 16:11:42 +0000 (16:11 +0000)
commit897bab9b35dd80e10e8a9c34dcac072c173fcffb
treed40861de5457f17703e145f77cf0a3c07f205c67
parenteb65d72d9cf0f39bcfa793ae6afa7a90022993a5
[ThinLTO] Record calls to aliases

Summary:
When there is a call to an alias in the same module, we were not
adding a call edge. So we could incorrectly think that the alias
was dead if it was inlined in that function, despite having a
reference imported elsewhere. This resulted in unsats at link time.

Add a call edge when the call is to an alias.

Reviewers: davide, mehdi_amini

Subscribers: llvm-commits

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

llvm-svn: 283664
llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
llvm/test/Bitcode/thinlto-alias2.ll [new file with mode: 0644]