loda-lang / loda-cpp

Runtime and miner for the LODA language written in C++
https://loda-lang.org/
Apache License 2.0
21 stars 1 forks source link

Optimize commutative "detours" #258

Closed ckrause closed 1 year ago

ckrause commented 1 year ago

Optimize fragments like this one:

mov $1,8916100448256
gcd $1,$0
mov $0,$1

to:

gcd $0,8916100448256

Conditions: