aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-04-23 13:24:55 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-04-23 13:24:55 -0700
commit6327b8b954f60d6f6f9ed729373ab1ece1f8c636 (patch)
tree0aaeb9f5872d9f8ec2b9cb71c8fdd17563a3a33e /tests/runner.py
parent3db65313082a337610b90925005e8fb630067357 (diff)
add commented out updates to pick_llvm_opts
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 79a820b0..fb3c83f3 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -63,10 +63,10 @@ class RunnerCore(unittest.TestCase):
if optimization_level == 0: return
- # -instcombine is nonportable, so doesn't appear here
LLVM_OPT_OPTS.append('-globalopt')
LLVM_OPT_OPTS.append('-ipsccp')
LLVM_OPT_OPTS.append('-deadargelim')
+ # nonportable LLVM_OPT_OPTS.append('-instcombine')
LLVM_OPT_OPTS.append('-simplifycfg')
LLVM_OPT_OPTS.append('-prune-eh')
LLVM_OPT_OPTS.append('-inline')
@@ -76,23 +76,31 @@ class RunnerCore(unittest.TestCase):
#LLVM_OPT_OPTS.append('-scalarrepl') # XXX Danger: Can turn a memcpy into something that violates the load-store
# # consistency hypothesis. See hashnum() in lua.
# # Note: this opt is of great importance for raytrace...
+ ##LLVM_OPT_OPTS.append('-early-cse') # ?
LLVM_OPT_OPTS.append('-simplify-libcalls')
LLVM_OPT_OPTS.append('-jump-threading')
+ ##LLVM_OPT_OPTS.append('-correlated-propagation') # ?
LLVM_OPT_OPTS.append('-simplifycfg')
+ # nonportable LLVM_OPT_OPTS.append('-instcombine')
LLVM_OPT_OPTS.append('-tailcallelim')
LLVM_OPT_OPTS.append('-simplifycfg')
LLVM_OPT_OPTS.append('-reassociate')
LLVM_OPT_OPTS.append('-loop-rotate')
LLVM_OPT_OPTS.append('-licm')
LLVM_OPT_OPTS.append('-loop-unswitch') # XXX should depend on optimize_size
+ # nonportable LLVM_OPT_OPTS.append('-instcombine')
LLVM_OPT_OPTS.append('-indvars')
+ ##LLVM_OPT_OPTS.append('-loop-idiom') # ?
LLVM_OPT_OPTS.append('-loop-deletion')
LLVM_OPT_OPTS.append('-loop-unroll')
+ # nonportable LLVM_OPT_OPTS.append('-instcombine')
#if optimization_level > 1:
# LLVM_OPT_OPTS.append('-gvn') # XXX Danger: Messes up Lua output for unknown reasons
# # Note: this opt is of minor importance for raytrace...
LLVM_OPT_OPTS.append('-memcpyopt') # Danger?
LLVM_OPT_OPTS.append('-sccp')
+
+ # nonportable LLVM_OPT_OPTS.append('-instcombine')
LLVM_OPT_OPTS.append('-jump-threading')
LLVM_OPT_OPTS.append('-correlated-propagation')
LLVM_OPT_OPTS.append('-dse')