B3 missing peephole optimization: x/x => 1 and x%x => 0
https://bugs.webkit.org/show_bug.cgi?id=196363
Summary B3 missing peephole optimization: x/x => 1 and x%x => 0
Robin Morisset
Reported 2019-03-28 12:26:35 PDT
No idea if this is correct for floating point values, but it is for integers (may have to double check for modulo and negative values).
Attachments
Robin Morisset
Comment 1 2019-03-30 09:02:24 PDT
Also x % 1 => 0.
Note You need to log in before you can comment on or make changes to this bug.