WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
Bug 196363
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
Add attachment
proposed patch, testcase, etc.
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.
Top of Page
Format For Printing
XML
Clone This Bug