aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-11-16 18:43:29 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-11-16 18:43:29 -0800
commitbcf1a4f0e90b93a7771058fda56e4be1046af38a (patch)
tree865cf6100f81d7113a9d53151795940022ef7dd8 /tools
parent7eeb3e661eefe4b53363bb4c7836d7c773831282 (diff)
clean up benchmark code
Diffstat (limited to 'tools')
-rw-r--r--tools/shared.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/shared.py b/tools/shared.py
index d3cc330b..8dc9fbea 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -114,9 +114,9 @@ def pick_llvm_opts(optimization_level, safe=True):
if not safe:
opts.append('-O%d' % optimization_level)
else:
- allow_nonportable = False
+ allow_nonportable = not safe
optimize_size = True
- use_aa = False
+ use_aa = not safe
# PassManagerBuilder::populateModulePassManager
if allow_nonportable and use_aa: # ammo.js results indicate this can be nonportable