mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
[ThinLTO] Use correct pipeline for ThinLTO in gold-plugin.
This change is the gold side of the change made in D17115 and clang patch r261045 to add a ThinLTO specific pipeline that moves more of the optimization to the backends. llvm-svn: 269386
This commit is contained in:
parent
c96c018848
commit
15c15dfb52
@ -970,7 +970,10 @@ void CodeGen::runLTOPasses() {
|
||||
PMB.SLPVectorize = true;
|
||||
PMB.OptLevel = options::OptLevel;
|
||||
PMB.ModuleSummary = CombinedIndex;
|
||||
PMB.populateLTOPassManager(passes);
|
||||
if (options::thinlto)
|
||||
PMB.populateThinLTOPassManager(passes);
|
||||
else
|
||||
PMB.populateLTOPassManager(passes);
|
||||
passes.run(*M);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user