diff options
author | Steven Wu <stevenwu@apple.com> | 2018-11-13 17:35:04 +0000 |
---|---|---|
committer | Steven Wu <stevenwu@apple.com> | 2018-11-13 17:35:04 +0000 |
commit | fa43892d6fdf77e373dcf54f1c934380b8731df2 (patch) | |
tree | 4908fa417e03b50a4713544230c993893fd38afb /llvm/lib/LTO/LTO.cpp | |
parent | 77c17e26eaca06626a4ad1d9b2ccaba28d15b62f (diff) | |
download | llvm-fa43892d6fdf77e373dcf54f1c934380b8731df2.zip llvm-fa43892d6fdf77e373dcf54f1c934380b8731df2.tar.gz llvm-fa43892d6fdf77e373dcf54f1c934380b8731df2.tar.bz2 |
Revert "[ThinLTO] Internalize readonly globals"
This reverts commit 10c84a8f35cae4a9fc421648d9608fccda3925f2.
llvm-svn: 346768
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r-- | llvm/lib/LTO/LTO.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index 68fd93a..6b11f69 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -187,8 +187,6 @@ static void computeCacheKey( AddUnsigned(VI.isDSOLocal()); AddUsedCfiGlobal(VI.getGUID()); } - if (auto *GVS = dyn_cast<GlobalVarSummary>(GS)) - AddUnsigned(GVS->isReadOnly()); if (auto *FS = dyn_cast<FunctionSummary>(GS)) { for (auto &TT : FS->type_tests()) UsedTypeIds.insert(TT); @@ -811,8 +809,7 @@ Error LTO::run(AddStreamFn AddStream, NativeObjectCache Cache) { return PrevailingType::Unknown; return It->second; }; - computeDeadSymbolsWithConstProp(ThinLTO.CombinedIndex, GUIDPreservedSymbols, - isPrevailing, Conf.OptLevel > 0); + computeDeadSymbols(ThinLTO.CombinedIndex, GUIDPreservedSymbols, isPrevailing); // Setup output file to emit statistics. std::unique_ptr<ToolOutputFile> StatsFile = nullptr; |