mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +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);
|
pmb.set_optimization_level(OptimizationLevel::None);
|
||||||
}
|
}
|
||||||
OptLevel::Optimize => {
|
OptLevel::Optimize => {
|
||||||
|
pmb.set_optimization_level(OptimizationLevel::Aggressive);
|
||||||
// this threshold seems to do what we want
|
// this threshold seems to do what we want
|
||||||
pmb.set_inliner_with_threshold(275);
|
pmb.set_inliner_with_threshold(275);
|
||||||
|
|
||||||
|
@ -1165,6 +1166,8 @@ pub fn build_exp_expr<'a, 'ctx, 'env>(
|
||||||
env.builder
|
env.builder
|
||||||
.build_call(*function_value, &[], "evaluate_top_level_thunk");
|
.build_call(*function_value, &[], "evaluate_top_level_thunk");
|
||||||
|
|
||||||
|
call.set_call_convention(FAST_CALL_CONV);
|
||||||
|
|
||||||
call.try_as_basic_value().left().unwrap()
|
call.try_as_basic_value().left().unwrap()
|
||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue