[PATCH] D15163: Attach maximum function count to Module when using PGO mode.
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 10 15:34:16 PST 2015
rsmith added a subscriber: rsmith.
================
Comment at: lib/CodeGen/CodeGenModule.cpp:380-381
@@ -379,1 +379,4 @@
+ // In PGO mode, attach maximum function count to the module.
+ if (PGOReader)
+ getModule().setMaximumFunctionCount(PGOReader->getMaximumFunctionCount());
EmitCtorList(GlobalCtors, "llvm.global_ctors");
----------------
Can you add a test for this to clang's test/CodeGen?
Repository:
rL LLVM
http://reviews.llvm.org/D15163
More information about the cfe-commits
mailing list