forked from M-Labs/nac3
1
0
Fork 0

nac3standalone: set up LLVM inliner like in nac3artiq

This commit is contained in:
Sebastien Bourdeauducq 2022-01-08 21:03:58 +08:00
parent 52ccf31bb1
commit b638d1b4b0
1 changed files with 1 additions and 0 deletions

View File

@ -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);