Skip to content

Commit

Permalink
update compiler optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Sep 10, 2024
1 parent 5c8f2b7 commit b41ae49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/compiler/compiler-optimizations.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Enables special optimizations for mathematical operations.
- Converts divisions to bit shifting if possible. Good conditions for this optimization: operands are integer, denominator is constant and power of 2.
- Converts modulo by 2 expressions to equavalent bitwise operation.
- Eliminates neutral binary expressions such as such as addition/subtraction with the constant-zero.
- Eliminates runtime overflow checking for binary shifing expressions if right operand is constant.

---

Expand Down

0 comments on commit b41ae49

Please sign in to comment.