]> granicus.if.org Git - clang/commit
Attach maximum function count to Module when using PGO mode
authorEaswaran Raman <eraman@google.com>
Sat, 12 Dec 2015 00:31:02 +0000 (00:31 +0000)
committerEaswaran Raman <eraman@google.com>
Sat, 12 Dec 2015 00:31:02 +0000 (00:31 +0000)
commit94f51f428aa7db5ba4543f02698d752ff9b4970a
treea77d8aa12bb80e7b5e2f9d1bd3b7eed4c5e94efe
parent775568b0853417512d55d82965226fe1c704adf9
Attach maximum function count to Module when using PGO mode

This sets the maximum entry count among all functions in the program to the
module using module flags. This allows the optimizer to use this information.

Differential Revision: http://reviews.llvm.org/D15163

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255397 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CodeGen/pgo-max-function-count.c [new file with mode: 0644]