[llvm-commits] [zorg] r104966 - /zorg/trunk/lnt/lnt/tests/nt.py
Daniel Dunbar
daniel at zuster.org
Fri May 28 10:36:23 PDT 2010
Author: ddunbar
Date: Fri May 28 12:36:22 2010
New Revision: 104966
URL: http://llvm.org/viewvc/llvm-project?rev=104966&view=rev
Log:
LNT/runtest nt: Add --optimize-option, for setting the OPTFLAGS, LLC_OPTFLAGS,
and LLI_OPTFLAGS options to nightly test makefiles.
Modified:
zorg/trunk/lnt/lnt/tests/nt.py
Modified: zorg/trunk/lnt/lnt/tests/nt.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/tests/nt.py?rev=104966&r1=104965&r2=104966&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/tests/nt.py (original)
+++ zorg/trunk/lnt/lnt/tests/nt.py Fri May 28 12:36:22 2010
@@ -49,6 +49,15 @@
'ENABLE_OPTIMIZED' : '1',
}
+ # Set the optimization level options.
+ make_variables['OPTFLAGS'] = opts.optimize_option
+ if opts.optimize_option == '-Os':
+ make_variables['LLI_OPTFLAGS'] = '-O3'
+ make_variables['LLC_OPTFLAGS'] = '-O3'
+ else:
+ make_variables['LLI_OPTFLAGS'] = opts.optimize_option
+ make_variables['LLC_OPTFLAGS'] = opts.optimize_option
+
# Set test selection variables.
make_variables['TARGET_CXX'] = opts.cxx_reference
if opts.test_cxx:
@@ -440,6 +449,9 @@
help=("Set -disable-fp-elim in TARGET_LLCFLAGS"),
action="store_true", default=False)
+ group.add_option("", "--optimize-option", dest="optimize_option",
+ help="Set optimization level for {LLC_,LLI_,}OPTFLAGS",
+ choices=('-O0','-O1','-O2','-O3'), default='-O3')
group.add_option("", "--cflag", dest="cflags",
help="Additional flags to set in TARGET_FLAGS",
action="append", type=str, default=[], metavar="FLAG")
More information about the llvm-commits
mailing list