[all-commits] [llvm/llvm-project] 7f92d6: [ThinLTO] Fix bug when importing writeonly variables
eleviant via All-commits
all-commits at lists.llvm.org
Fri Nov 8 10:03:32 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 7f92d66f378574ab2a02935b6614560ae9000539
https://github.com/llvm/llvm-project/commit/7f92d66f378574ab2a02935b6614560ae9000539
Author: evgeny <eleviant at accesssoftek.com>
Date: 2019-11-08 (Fri, 08 Nov 2019)
Changed paths:
M llvm/lib/IR/ModuleSummaryIndex.cpp
M llvm/lib/Transforms/IPO/FunctionImport.cpp
M llvm/lib/Transforms/Utils/FunctionImportUtils.cpp
A llvm/test/ThinLTO/X86/Inputs/writeonly-with-refs.ll
A llvm/test/ThinLTO/X86/writeonly-with-refs.ll
Log Message:
-----------
[ThinLTO] Fix bug when importing writeonly variables
Patch enables import of write-only variables with non-trivial initializers
to fix linker errors. Initializers of imported variables are converted to
'zeroinitializer' to avoid promotion of referenced objects.
Differential revision: https://reviews.llvm.org/D70006
More information about the All-commits
mailing list