mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
commit
5eee74f209
5 changed files with 65 additions and 2 deletions
|
@ -386,6 +386,9 @@ pub fn construct_optimization_passes<'a>(
|
|||
fpm.add_instruction_combining_pass();
|
||||
fpm.add_tail_call_elimination_pass();
|
||||
|
||||
// remove unused global values (e.g. those defined by zig, but unused in user code)
|
||||
mpm.add_global_dce_pass();
|
||||
|
||||
let pmb = PassManagerBuilder::create();
|
||||
match opt_level {
|
||||
OptLevel::Normal => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue