[ThinLTO] Create AliasSummary when building index
authorTeresa Johnson <tejohnson@google.com>
Fri, 28 Oct 2016 02:39:38 +0000 (02:39 +0000)
committerTeresa Johnson <tejohnson@google.com>
Fri, 28 Oct 2016 02:39:38 +0000 (02:39 +0000)
commit02563cd3a6150c829d050ad64217a2a91d397534
treed9924e0bdb2dcc978b5717ebd889809df9dd5ce7
parenta0d9acafe11969665939a572538eb1bcc53d8e1b
[ThinLTO] Create AliasSummary when building index

Summary:
Previously we were creating the alias summary on the fly while writing
the summary to bitcode. This moves the creation of these summaries to
the module summary index builder where we build the rest of the summary
index.

This is going to be necessary for setting the NoRename flag for values
possibly used in inline asm or module level asm.

Reviewers: mehdi_amini

Subscribers: llvm-commits

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

llvm-svn: 285379
llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp