diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-02-17 00:42:20 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-02-17 00:42:20 +0000 |
commit | a7c0940d723b104e22b440105dc65c89c97df0a1 (patch) | |
tree | a48f34b2ccb97dd64c4c350f58ebe8cca9580bc4 /clang/lib/CodeGen | |
parent | 188ca894c294c569a5dc2c4cae7a74e6079d1df1 (diff) | |
download | bcm5719-llvm-a7c0940d723b104e22b440105dc65c89c97df0a1.tar.gz bcm5719-llvm-a7c0940d723b104e22b440105dc65c89c97df0a1.zip |
Teach clang to use the ThinLTO pipeline
Summary: Use the new pipeline implemented in D17115
Reviewers: tejohnson
Subscribers: joker.eph, cfe-commits
Differential Revision: http://reviews.llvm.org/D17272
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 261045
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/BackendUtil.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index 032b2961c15..0cb039bb07a 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -324,6 +324,7 @@ void EmitAssemblyHelper::CreatePasses(FunctionInfoIndex *FunctionIndex) { PMBuilder.DisableUnitAtATime = !CodeGenOpts.UnitAtATime; PMBuilder.DisableUnrollLoops = !CodeGenOpts.UnrollLoops; PMBuilder.MergeFunctions = CodeGenOpts.MergeFunctions; + PMBuilder.PrepareForThinLTO = CodeGenOpts.EmitFunctionSummary; PMBuilder.PrepareForLTO = CodeGenOpts.PrepareForLTO; PMBuilder.RerollLoops = CodeGenOpts.RerollLoops; @@ -333,7 +334,7 @@ void EmitAssemblyHelper::CreatePasses(FunctionInfoIndex *FunctionIndex) { // pipeline and pass down the in-memory function index. if (FunctionIndex) { PMBuilder.FunctionIndex = FunctionIndex; - PMBuilder.populateLTOPassManager(*MPM); + PMBuilder.populateThinLTOPassManager(*MPM); return; } |