mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
use fast calling convention
This commit is contained in:
parent
729e16cad9
commit
02a396d08a
1 changed files with 3 additions and 0 deletions
|
@ -322,6 +322,7 @@ pub fn construct_optimization_passes<'a>(
|
|||
pmb.set_optimization_level(OptimizationLevel::None);
|
||||
}
|
||||
OptLevel::Optimize => {
|
||||
pmb.set_optimization_level(OptimizationLevel::Aggressive);
|
||||
// this threshold seems to do what we want
|
||||
pmb.set_inliner_with_threshold(275);
|
||||
|
||||
|
@ -1165,6 +1166,8 @@ pub fn build_exp_expr<'a, 'ctx, 'env>(
|
|||
env.builder
|
||||
.build_call(*function_value, &[], "evaluate_top_level_thunk");
|
||||
|
||||
call.set_call_convention(FAST_CALL_CONV);
|
||||
|
||||
call.try_as_basic_value().left().unwrap()
|
||||
}
|
||||
None => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue