[PATCH] D17272: Teach clang to use the ThinLTO pipeline
Mehdi AMINI via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 15 11:14:07 PST 2016
joker.eph created this revision.
joker.eph added a reviewer: tejohnson.
joker.eph added a subscriber: cfe-commits.
Herald added a subscriber: joker.eph.
Use the new pipeline implemented in D17115
http://reviews.llvm.org/D17272
Files:
lib/CodeGen/BackendUtil.cpp
Index: lib/CodeGen/BackendUtil.cpp
===================================================================
--- lib/CodeGen/BackendUtil.cpp
+++ lib/CodeGen/BackendUtil.cpp
@@ -325,6 +325,7 @@
PMBuilder.DisableUnitAtATime = !CodeGenOpts.UnitAtATime;
PMBuilder.DisableUnrollLoops = !CodeGenOpts.UnrollLoops;
PMBuilder.MergeFunctions = CodeGenOpts.MergeFunctions;
+ PMBuilder.PrepareForThinLTO = CodeGenOpts.EmitFunctionSummary;
PMBuilder.PrepareForLTO = CodeGenOpts.PrepareForLTO;
PMBuilder.RerollLoops = CodeGenOpts.RerollLoops;
@@ -334,7 +335,7 @@
// pipeline and pass down the in-memory function index.
if (FunctionIndex) {
PMBuilder.FunctionIndex = FunctionIndex;
- PMBuilder.populateLTOPassManager(*MPM);
+ PMBuilder.populateThinLTOPassManager(*MPM);
return;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17272.48001.patch
Type: text/x-patch
Size: 804 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160215/cfea2e29/attachment.bin>
More information about the cfe-commits
mailing list