assemblyscript icon indicating copy to clipboard operation
assemblyscript copied to clipboard

Refactor branch / select sign checks from rshift to cmp with zero

Open MaxGraey opened this issue 3 years ago • 0 comments

Motivation:

Right shifts makes sense mostly for single expressions or complex conditions. While single if (x < 0) or select(..., x < 0) usually fused to single instruction js / jns / cmovs / cmovns on wasm engines

  • [x] I've read the contributing guidelines
  • [x] I've added my name and email to the NOTICE file

MaxGraey avatar Aug 09 '22 13:08 MaxGraey