Add PGO GENPROFILE support to coreclr and clrjit (dotnet/coreclr#7423)
authorDaniel Podder <dpodder@gmail.com>
Tue, 4 Oct 2016 08:39:49 +0000 (01:39 -0700)
committerJan Vorlicek <janvorli@microsoft.com>
Tue, 4 Oct 2016 08:39:49 +0000 (10:39 +0200)
commit0687dbfc5ad901f1632f4efa46253ea7cbd6c0c3
tree398dd98da6605bfe669cbaf6e2f0d23cd169c05c
parent8b52fb526d19b7f70038d3cce8ddc15f41021611
Add PGO GENPROFILE support to coreclr and clrjit (dotnet/coreclr#7423)

* Add PGO GENPROFILE support to coreclr and clrjit

Update the cmake build system to enable support for Profile Guided
Optimization (PGO) on Windows, and enable this feature for two target
binaries (coreclr and clrjit).

With this change, toggle between instrumented and profile-optimized
settings for target binaries by passing pgoinstrument argument to the build.cmd
Assume profile-optimized mode by default. Fall back to regular non-PGO
optimized builds if profile data is not available.

Commit migrated from https://github.com/dotnet/coreclr/commit/114b58869def96c720d0c2fd9b77ceccdc924b96
src/coreclr/CMakeLists.txt
src/coreclr/build.cmd
src/coreclr/build.sh
src/coreclr/functions.cmake
src/coreclr/pgosupport.cmake [new file with mode: 0644]
src/coreclr/src/dlls/mscoree/coreclr/CMakeLists.txt
src/coreclr/src/jit/standalone/CMakeLists.txt