mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-28 20:53:35 +08:00
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.opt_level = 2 # -O2
|
||||
llpassmgrbuilder.size_level = 1 # -Os
|
||||
llpassmgrbuilder.inlining_threshold = 75 # -Os threshold
|
||||
|
||||
llpassmgr = llvm.create_module_pass_manager()
|
||||
llpassmgrbuilder.populate(llpassmgr)
|
||||
|
Loading…
Reference in New Issue
Block a user