[llvm-commits] [test-suite] r63801 - /test-suite/trunk/Makefile.rules

Dan Gohman gohman at apple.com
Wed Feb 4 16:24:30 PST 2009


Author: djg
Date: Wed Feb  4 18:24:30 2009
New Revision: 63801

URL: http://llvm.org/viewvc/llvm-project?rev=63801&view=rev
Log:
Use "-mllvm -disable-llvm-optzns" instead of -O0 to disable preliminary
optimizations when LTO is being used. The front-end behaves differently
at -O0.

Modified:
    test-suite/trunk/Makefile.rules

Modified: test-suite/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/Makefile.rules?rev=63801&r1=63800&r2=63801&view=diff

==============================================================================
--- test-suite/trunk/Makefile.rules (original)
+++ test-suite/trunk/Makefile.rules Wed Feb  4 18:24:30 2009
@@ -321,12 +321,14 @@
 # Default optimization level:
 OPTFLAGS := -O3
 
-# If LTO is on, compile each .c .cpp file with -O0 and optimize with
-# opt and llvm-ld.
+# If LTO is on, compile each .c .cpp file with -mllvm -disable-llvm-optzns.
+# This is similar to -O0, except it just disables optimizations and doesn't
+# change the behavior of the front-end. Optimization will be done separately
+# with opt and llvm-ld.
 ifdef DISABLE_LTO
 LOPTFLAGS := $(OPTFLAGS)
 else
-LOPTFLAGS := -O0
+LOPTFLAGS := $(OPTFLAGS) -mllvm -disable-llvm-optzns
 endif
 
 





More information about the llvm-commits mailing list