734
734
CFLAGS_SL
735
735
BITCODE_CXXFLAGS
736
736
BITCODE_CFLAGS
737
- CFLAGS_VECTOR
737
+ CFLAGS_VECTORIZE
738
+ CFLAGS_UNROLL_LOOPS
738
739
PERMIT_DECLARATION_AFTER_STATEMENT
739
740
LLVM_BINPATH
740
741
LLVM_CXXFLAGS
@@ -5266,9 +5267,12 @@ BITCODE_CFLAGS=""
5266
5267
user_BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS
5267
5268
BITCODE_CXXFLAGS=""
5268
5269
5269
- # set CFLAGS_VECTOR from the environment, if available
5270
- if test "$ac_env_CFLAGS_VECTOR_set" = set; then
5271
- CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
5270
+ # set CFLAGS_UNROLL_LOOPS and CFLAGS_VECTORIZE from the environment, if present
5271
+ if test "$ac_env_CFLAGS_UNROLL_LOOPS_set" = set; then
5272
+ CFLAGS_UNROLL_LOOPS=$ac_env_CFLAGS_UNROLL_LOOPS_value
5273
+ fi
5274
+ if test "$ac_env_CFLAGS_VECTORIZE_set" = set; then
5275
+ CFLAGS_VECTORIZE=$ac_env_CFLAGS_VECTORIZE_value
5272
5276
fi
5273
5277
5274
5278
# Some versions of GCC support some additional useful warning flags.
@@ -6102,16 +6106,16 @@ if test x"$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" = x"yes"; then
6102
6106
fi
6103
6107
6104
6108
6105
- # Optimization flags for specific files that benefit from vectorization
6106
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -funroll-loops, for CFLAGS_VECTOR " >&5
6107
- $as_echo_n "checking whether ${CC} supports -funroll-loops, for CFLAGS_VECTOR ... " >&6; }
6109
+ # Optimization flags for specific files that benefit from loop unrolling
6110
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -funroll-loops, for CFLAGS_UNROLL_LOOPS " >&5
6111
+ $as_echo_n "checking whether ${CC} supports -funroll-loops, for CFLAGS_UNROLL_LOOPS ... " >&6; }
6108
6112
if ${pgac_cv_prog_CC_cflags__funroll_loops+:} false; then :
6109
6113
$as_echo_n "(cached) " >&6
6110
6114
else
6111
6115
pgac_save_CFLAGS=$CFLAGS
6112
6116
pgac_save_CC=$CC
6113
6117
CC=${CC}
6114
- CFLAGS="${CFLAGS_VECTOR } -funroll-loops"
6118
+ CFLAGS="${CFLAGS_UNROLL_LOOPS } -funroll-loops"
6115
6119
ac_save_c_werror_flag=$ac_c_werror_flag
6116
6120
ac_c_werror_flag=yes
6117
6121
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -6138,19 +6142,20 @@ fi
6138
6142
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__funroll_loops" >&5
6139
6143
$as_echo "$pgac_cv_prog_CC_cflags__funroll_loops" >&6; }
6140
6144
if test x"$pgac_cv_prog_CC_cflags__funroll_loops" = x"yes"; then
6141
- CFLAGS_VECTOR ="${CFLAGS_VECTOR } -funroll-loops"
6145
+ CFLAGS_UNROLL_LOOPS ="${CFLAGS_UNROLL_LOOPS } -funroll-loops"
6142
6146
fi
6143
6147
6144
6148
6145
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTOR" >&5
6146
- $as_echo_n "checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTOR... " >&6; }
6149
+ # Optimization flags for specific files that benefit from vectorization
6150
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTORIZE" >&5
6151
+ $as_echo_n "checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTORIZE... " >&6; }
6147
6152
if ${pgac_cv_prog_CC_cflags__ftree_vectorize+:} false; then :
6148
6153
$as_echo_n "(cached) " >&6
6149
6154
else
6150
6155
pgac_save_CFLAGS=$CFLAGS
6151
6156
pgac_save_CC=$CC
6152
6157
CC=${CC}
6153
- CFLAGS="${CFLAGS_VECTOR } -ftree-vectorize"
6158
+ CFLAGS="${CFLAGS_VECTORIZE } -ftree-vectorize"
6154
6159
ac_save_c_werror_flag=$ac_c_werror_flag
6155
6160
ac_c_werror_flag=yes
6156
6161
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177
6182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__ftree_vectorize" >&5
6178
6183
$as_echo "$pgac_cv_prog_CC_cflags__ftree_vectorize" >&6; }
6179
6184
if test x"$pgac_cv_prog_CC_cflags__ftree_vectorize" = x"yes"; then
6180
- CFLAGS_VECTOR ="${CFLAGS_VECTOR } -ftree-vectorize"
6185
+ CFLAGS_VECTORIZE ="${CFLAGS_VECTORIZE } -ftree-vectorize"
6181
6186
fi
6182
6187
6183
6188
6782
6787
6783
6788
6784
6789
6790
+
6785
6791
# Determine flags used to emit bitcode for JIT inlining. Need to test
6786
6792
# for behaviour changing compiler flags, to keep compatibility with
6787
6793
# compiler used for normal postgres code.
0 commit comments