[llvm] r269386 - [ThinLTO] Use correct pipeline for ThinLTO in gold-plugin.
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Thu May 12 18:25:31 PDT 2016
Author: tejohnson
Date: Thu May 12 20:25:31 2016
New Revision: 269386
URL: http://llvm.org/viewvc/llvm-project?rev=269386&view=rev
Log:
[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.
Modified:
llvm/trunk/tools/gold/gold-plugin.cpp
Modified: llvm/trunk/tools/gold/gold-plugin.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/gold/gold-plugin.cpp?rev=269386&r1=269385&r2=269386&view=diff
==============================================================================
--- llvm/trunk/tools/gold/gold-plugin.cpp (original)
+++ llvm/trunk/tools/gold/gold-plugin.cpp Thu May 12 20:25:31 2016
@@ -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);
}
More information about the llvm-commits
mailing list