vyperlang / vyper

Pythonic Smart Contract Language for the EVM
https://vyperlang.org
Other
4.82k stars 790 forks source link

feat[venom]: avoid last `swap` for commutative ops #4048

Closed harkal closed 1 month ago

harkal commented 1 month ago

What I did

Commutative op aware scheduling

How I did it

How to verify it

Commit message

This commit implements a simple "last swap" avoidance for commutative ops.
Additionally, it renames then `get_inputs()` method to `get_input_variables()`
in `IRInstruction` for clarity and consistency

Description for the changelog

Cute Animal Picture

![Put a link to a cute animal picture inside the parenthesis-->]()