summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-04-10 18:56:24 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-04-10 18:56:24 +0000
commit195d2dec10a7faef45e9f5b4002ed44b1f6627be (patch)
treea5c85f339b075e487686b032efd6e4a8e4914814 /autoconf
parent6f285d21053552e5aff9aba74f0425505d6ab61a (diff)
downloadllvm-195d2dec10a7faef45e9f5b4002ed44b1f6627be.tar.gz
llvm-195d2dec10a7faef45e9f5b4002ed44b1f6627be.tar.bz2
llvm-195d2dec10a7faef45e9f5b4002ed44b1f6627be.tar.xz
configure: Fix default value for optimize_option, I messed up the test condition
in r86005 and unintentionally changed the default from -O3 to -O2. - It's odd the things automated perf testing turns up! :) - Also, the configure diff is messed up slightly. It looks like someone either didn't regenerate configure correctly (or I didn't), or autoconf has some funnyness in it. Eric, any ideas? This has been at -O2 for so long, that I am slightly nervous that this change will uncover miscompiles of LLVM on other systems. If that is the case, I think we should just set the default universally at -O3, and let developers/vendors use -O3 if they want it and have tested it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100941 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index bd85577bcb..ff5804b27d 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -728,8 +728,8 @@ AC_MSG_CHECKING([optimization flags])
case "$withval" in
default)
case "$llvm_cv_os_type" in
- MingW) optimize_option=-O3 ;;
- *) optimize_option=-O2 ;;
+ MingW) optimize_option=-O2 ;;
+ *) optimize_option=-O3 ;;
esac ;;
*) optimize_option="$withval" ;;
esac