diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-06-01 20:30:06 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2017-06-01 20:30:06 +0000 |
commit | 56584bbf16d70fbf2f07b5ce1a2fbf15f447abe5 (patch) | |
tree | a5cf460521bbe07a6f3e1d0799bd71a7a806e8eb /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | a5dbbc6eada042cc86628da235829b715cec543d (diff) | |
download | bcm5719-llvm-56584bbf16d70fbf2f07b5ce1a2fbf15f447abe5.tar.gz bcm5719-llvm-56584bbf16d70fbf2f07b5ce1a2fbf15f447abe5.zip |
(NFC) Track global summary liveness in GVFlags.
Replace GVFlags::LiveRoot with GVFlags::Live and use that instead of
all the DeadSymbols sets. This is refactoring in order to make
liveness information available in the RegularLTO pipeline.
llvm-svn: 304466
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index a402b4ddd46..421dc261604 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -864,7 +864,7 @@ static uint64_t getEncodedGVSummaryFlags(GlobalValueSummary::GVFlags Flags) { uint64_t RawFlags = 0; RawFlags |= Flags.NotEligibleToImport; // bool - RawFlags |= (Flags.LiveRoot << 1); + RawFlags |= (Flags.Live << 1); // Linkage don't need to be remapped at that time for the summary. Any future // change to the getEncodedLinkage() function will need to be taken into // account here as well. |