Add more options to PGO
Jeffrey Pfau jeffrey@endrift.com
Wed, 22 Oct 2014 22:00:19 -0700
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
CMakeLists.txt
→
CMakeLists.txt
@@ -60,8 +60,8 @@ set(BUILD_PGO CACHE BOOL "Build with profiling-guided optimization")
set(PGO_STAGE_2 CACHE BOOL "Rebuild for profiling-guided optimization after profiles have been generated") set(PGO_DIR "/tmp/gba-pgo/" CACHE PATH "Profiling-guided optimization profiles path") mark_as_advanced(BUILD_PGO PGO_STAGE_2 PGO_DIR) -set(PGO_PRE_FLAGS "-pg -fprofile-generate=${PGO_DIR}") -set(PGO_POST_FLAGS "-fprofile-use=${PGO_DIR}") +set(PGO_PRE_FLAGS "-pg -fprofile-generate=${PGO_DIR} -fprofile-arcs") +set(PGO_POST_FLAGS "-fprofile-use=${PGO_DIR} -fbranch-probabilities") if(BUILD_PGO AND NOT PGO_STAGE_2) set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${PGO_PRE_FLAGS}")