From b638d1b4b09de33956fbec610c0c5f75cdb1e994 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 8 Jan 2022 21:03:58 +0800 Subject: [PATCH] nac3standalone: set up LLVM inliner like in nac3artiq --- nac3standalone/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/nac3standalone/src/main.rs b/nac3standalone/src/main.rs index 702c03ad..05f131db 100644 --- a/nac3standalone/src/main.rs +++ b/nac3standalone/src/main.rs @@ -268,6 +268,7 @@ fn main() { let builder = PassManagerBuilder::create(); builder.set_optimization_level(OptimizationLevel::Aggressive); let passes = PassManager::create(()); + builder.set_inliner_with_threshold(255); builder.populate_module_pass_manager(&passes); passes.run_on(module);