mirror of https://github.com/m-labs/artiq.git
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:
parent
f92ce291ef
commit
a2a00e8b35
|
@ -97,6 +97,7 @@ class Target:
|
||||||
llpassmgrbuilder = llvm.create_pass_manager_builder()
|
llpassmgrbuilder = llvm.create_pass_manager_builder()
|
||||||
llpassmgrbuilder.opt_level = 2 # -O2
|
llpassmgrbuilder.opt_level = 2 # -O2
|
||||||
llpassmgrbuilder.size_level = 1 # -Os
|
llpassmgrbuilder.size_level = 1 # -Os
|
||||||
|
llpassmgrbuilder.inlining_threshold = 75 # -Os threshold
|
||||||
|
|
||||||
llpassmgr = llvm.create_module_pass_manager()
|
llpassmgr = llvm.create_module_pass_manager()
|
||||||
llpassmgrbuilder.populate(llpassmgr)
|
llpassmgrbuilder.populate(llpassmgr)
|
||||||
|
|
Loading…
Reference in New Issue