forked from M-Labs/artiq
1
0
Fork 0

Set LLVM inlining threshold explicitly.

llvmlite's pass manager builder does not use a default when it
is not specified explicitly, unlike the C++ one.
This commit is contained in:
whitequark 2016-01-10 16:15:23 +00:00
parent f92ce291ef
commit a2a00e8b35
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ class Target:
llpassmgrbuilder = llvm.create_pass_manager_builder()
llpassmgrbuilder.opt_level = 2 # -O2
llpassmgrbuilder.size_level = 1 # -Os
llpassmgrbuilder.inlining_threshold = 75 # -Os threshold
llpassmgr = llvm.create_module_pass_manager()
llpassmgrbuilder.populate(llpassmgr)