Skip to content

Commit

Permalink
Run simplify twice
Browse files Browse the repository at this point in the history
  • Loading branch information
voltrevo committed Jul 1, 2023
1 parent ff8defc commit 0f9c10f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions valuescript_compiler/src/optimization/optimize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pub fn optimize(module: &mut Module, pointer_allocator: &mut NameAllocator) {
collapse_pointers_of_pointers(module);
shake_tree(module);
simplify(module);
simplify(module);
remove_noops(module);
remove_meta_lines(module);
extract_constants(module, pointer_allocator);
Expand Down

0 comments on commit 0f9c10f

Please sign in to comment.