mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 02:02:38 +01:00
configure: Tweak/reorg optimization unconditional flags.
This commit is contained in:
parent
f8090b9ae5
commit
634599287b
1 changed files with 18 additions and 3 deletions
21
configure.ac
21
configure.ac
|
@ -535,9 +535,6 @@ AM_COND_IF([LTO],
|
||||||
AM_COND_IF([OPTIMIZE],
|
AM_COND_IF([OPTIMIZE],
|
||||||
[
|
[
|
||||||
optimize="yes"
|
optimize="yes"
|
||||||
CXXFLAGS+=" -fdata-sections"
|
|
||||||
CXXFLAGS+=" -ffunction-sections"
|
|
||||||
CXXFLAGS+=" -ftree-vectorize"
|
|
||||||
|
|
||||||
AM_COND_IF([GCC],
|
AM_COND_IF([GCC],
|
||||||
[
|
[
|
||||||
|
@ -557,6 +554,8 @@ dnl CXXFLAGS+=" -fbtr-bb-exclusive"
|
||||||
CXXFLAGS+=" -fmodulo-sched"
|
CXXFLAGS+=" -fmodulo-sched"
|
||||||
CXXFLAGS+=" -fmodulo-sched-allow-regmoves"
|
CXXFLAGS+=" -fmodulo-sched-allow-regmoves"
|
||||||
CXXFLAGS+=" -ftracer"
|
CXXFLAGS+=" -ftracer"
|
||||||
|
CXXFLAGS+=" -ftree-loop-im"
|
||||||
|
CXXFLAGS+=" -ftree-switch-conversion"
|
||||||
|
|
||||||
dnl Optimization options that aren't compatible with debugging.
|
dnl Optimization options that aren't compatible with debugging.
|
||||||
AM_COND_IF([DEBUG], [],
|
AM_COND_IF([DEBUG], [],
|
||||||
|
@ -566,10 +565,26 @@ dnl CXXFLAGS+=" -fbtr-bb-exclusive"
|
||||||
])
|
])
|
||||||
], [
|
], [
|
||||||
optimize="no"
|
optimize="no"
|
||||||
|
|
||||||
|
dnl Optimization options we enable in non-optimized mode. These will be enabled
|
||||||
|
dnl in non-optimized mode as well as optimized mode so they are as similar as
|
||||||
|
dnl possible without impacting debuggability.
|
||||||
CXXFLAGS+=" -falign-functions"
|
CXXFLAGS+=" -falign-functions"
|
||||||
CXXFLAGS+=" -falign-labels"
|
CXXFLAGS+=" -falign-labels"
|
||||||
CXXFLAGS+=" -falign-loops"
|
CXXFLAGS+=" -falign-loops"
|
||||||
CXXFLAGS+=" -falign-jumps"
|
CXXFLAGS+=" -falign-jumps"
|
||||||
|
dnl CXXFLAGS+=" -fdata-sections"
|
||||||
|
dnl CXXFLAGS+=" -ffunction-sections"
|
||||||
|
CXXFLAGS+=" -ftree-vectorize"
|
||||||
|
|
||||||
|
AM_COND_IF([GCC],
|
||||||
|
[
|
||||||
|
CXXFLAGS+=" -ftree-vrp"
|
||||||
|
CXXFLAGS+=" -ftree-dce"
|
||||||
|
CXXFLAGS+=" -ftree-dse"
|
||||||
|
CXXFLAGS+=" -ftree-loop-im"
|
||||||
|
CXXFLAGS+=" -ftree-switch-conversion"
|
||||||
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
|
|
Loading…
Reference in a new issue