]> granicus.if.org Git - clang/commit
CodeGen: Move PGO initialization into Release()
authorJustin Bogner <mail@justinbogner.com>
Thu, 10 Apr 2014 18:13:13 +0000 (18:13 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 10 Apr 2014 18:13:13 +0000 (18:13 +0000)
commitc16e066e7696410806913a576ed74831c09cd65c
treea29f8ce95707a76836ffb5832151e904b865dbde
parent38be8455c4c7ff6a988d624d71cc0029150d59e4
CodeGen: Move PGO initialization into Release()

Emitting the PGO initialization in EmitGlobalFunctionDefinition is
inefficient, since this only has an effect once per module.  We move
this to Release() with the rest of the once-per-module logic.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205977 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenPGO.cpp