[pypy-svn] r22811 - pypy/dist/pypy/translator/llvm

rxe at codespeak.net rxe at codespeak.net
Sat Jan 28 22:08:41 CET 2006


Author: rxe
Date: Sat Jan 28 22:08:40 2006
New Revision: 22811

Modified:
   pypy/dist/pypy/translator/llvm/build_llvm_module.py
Log:
Since we do our own inlining, reducing the theshold gives better results.


Modified: pypy/dist/pypy/translator/llvm/build_llvm_module.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/build_llvm_module.py	(original)
+++ pypy/dist/pypy/translator/llvm/build_llvm_module.py	Sat Jan 28 22:08:40 2006
@@ -33,7 +33,7 @@
 
 flags = os.popen("gccas /dev/null -o /dev/null -debug-pass=Arguments 2>&1").read()[17:-1].split()
 flags += "-globalopt -constmerge -ipsccp -deadargelim -inline -instcombine -scalarrepl -globalsmodref-aa -licm -load-vn -gcse -instcombine -simplifycfg -globaldce".split()
-OPTIMIZATION_SWITCHES = " ".join(flags)
+OPTIMIZATION_SWITCHES = " ".join(flags) + " -inline-threshold=100"
 
 def compile_module(module, source_files, object_files, library_files):
     open("%s_setup.py" % module, "w").write(str(py.code.Source(



More information about the Pypy-commit mailing list