Merge pull request #972 from PCSX2/clean-gcc-opt-cmake

cmake: reenable a couple of missing gcc optimization
This commit is contained in:
Gregory Hainaut 2016-01-08 19:32:18 +01:00
commit 4f28403c03
3 changed files with 4 additions and 23 deletions

View File

@ -12,14 +12,6 @@ set(CommonFlags
-fno-strict-aliasing -fno-strict-aliasing
) )
#Clang doesn't support a few common flags that GCC does.
if(NOT USE_CLANG)
set(UtilitiesFinalFlags
${UtilitiesFinalFlags}
${CommonFlags} -fno-guess-branch-probability -fno-dse -fno-tree-dse
)
endif(NOT USE_CLANG)
# Debug - Build # Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug) if(CMAKE_BUILD_TYPE STREQUAL Debug)

View File

@ -12,14 +12,6 @@ set(CommonFlags
-fno-strict-aliasing -fno-strict-aliasing
) )
#Clang doesn't support a few common flags that GCC does.
if(NOT USE_CLANG)
set(x86emitterFinalFlags
${x86emitterFinalFlags}
${CommonFlags} -fno-guess-branch-probability -fno-dse -fno-tree-dse
)
endif(NOT USE_CLANG)
# Debug - Build # Debug - Build
if(CMAKE_BUILD_TYPE STREQUAL Debug) if(CMAKE_BUILD_TYPE STREQUAL Debug)
# add defines # add defines

View File

@ -22,15 +22,12 @@ set(CommonFlags
-DWX_PRECOMP -DWX_PRECOMP
) )
#Clang doesn't support a few common flags that GCC does.
if(NOT USE_CLANG)
set(pcsx2FinalFlags ${CommonFlags} -fno-guess-branch-probability -fno-dse -fno-tree-dse)
endif()
if ("${PGO}" STREQUAL "generate") if ("${PGO}" STREQUAL "generate")
set(pcsx2FinalFlags ${pcsx2FinalFlags} -fprofile-generate) set(pcsx2FinalFlags -fprofile-generate)
elseif("${PGO}" STREQUAL "use") elseif("${PGO}" STREQUAL "use")
set(pcsx2FinalFlags ${pcsx2FinalFlags} -fprofile-use) set(pcsx2FinalFlags -fprofile-use)
else()
set(pcsx2FinalFlags "")
endif() endif()
# Debug - Build # Debug - Build