From a2a00e8b35eb906beb0938631d95b7b96d4c7be6 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 10 Jan 2016 16:15:23 +0000 Subject: [PATCH] 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. --- artiq/compiler/targets.py | 1 + 1 file changed, 1 insertion(+) diff --git a/artiq/compiler/targets.py b/artiq/compiler/targets.py index 0b9a382e3..506a52bea 100644 --- a/artiq/compiler/targets.py +++ b/artiq/compiler/targets.py @@ -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)