Skip to content

Commit

Permalink
update compiler optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Oct 13, 2024
1 parent 4c382db commit d44283b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/compiler/compiler-optimizations.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ Enables special optimizations for mathematical operations.
- 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.
- Eliminates runtime overflow of the `x^0` computations. It will be simplified to `x` expression.
- Simplifies expresions such as `x+x` to `x<<1` if possible.
- Simplifies expressions such as `x-x` to `0` if possible.

---

Expand Down

0 comments on commit d44283b

Please sign in to comment.