wasm2lua icon indicating copy to clipboard operation
wasm2lua copied to clipboard

Comparison Folding

Open MDFL64 opened this issue 5 years ago • 0 comments

Currently the results of comparison operations are always converted to integers, then converted back to bools when testing a conditional branch. We should store the comparison results as bools, and only convert between integers and bools if necessary. We should also try to fold the comparisons straight into conditional tests, since LuaJIT bytecode is designed to jump on comparisons.

MDFL64 avatar Jun 05 '19 20:06 MDFL64