OpenTTD / nml

NewGRF Meta Language
GNU General Public License v2.0
42 stars 36 forks source link

Codechange: Reduce register usage for BinOp #308

Closed glx22 closed 2 months ago

glx22 commented 11 months ago

When second argument of a BinOp is LOAD_TEMP(), it is first copied into a temporary register instead of being accessed directly.

Skip the useless copy.