diff options
author | Teresa Johnson <tejohnson@google.com> | 2016-05-13 01:25:31 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2016-05-13 01:25:31 +0000 |
commit | 532e33be42651cce3426cbdeb53b7a9b2e1a2873 (patch) | |
tree | 4723c3ed7f9995b8806b953c06f2502311782d2e | |
parent | fdacb5c056087d7f784b1369d262855806b51ac3 (diff) | |
download | bcm5719-llvm-532e33be42651cce3426cbdeb53b7a9b2e1a2873.tar.gz bcm5719-llvm-532e33be42651cce3426cbdeb53b7a9b2e1a2873.zip |
[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
-rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index 44df9d535ec..71abb2bff39 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -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); } |