mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
ThinLTO: linkonce compile-time optimization, do not bother when there is only one input file
From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 266281
This commit is contained in:
parent
d2ed420815
commit
341c55e737
@ -173,6 +173,10 @@ static void ResolveODR(GlobalValue &GV, const ModuleSummaryIndex &Index,
|
||||
/// one copy.
|
||||
static void ResolveODR(Module &TheModule,
|
||||
const ModuleSummaryIndex &Index) {
|
||||
if (Index.modulePaths().size() == 1)
|
||||
// Nothing to do if we don't have multiple modules
|
||||
return;
|
||||
|
||||
// We won't optimize the globals that are referenced by an alias for now
|
||||
// Ideally we should turn the alias into a global and duplicate the definition
|
||||
// when needed.
|
||||
|
Loading…
Reference in New Issue
Block a user