Bug 196363 - B3 missing peephole optimization: x/x => 1 and x%x => 0
Summary: B3 missing peephole optimization: x/x => 1 and x%x => 0
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Robin Morisset
URL:
Keywords:
Depends on:
Blocks: 196361
  Show dependency treegraph
 
Reported: 2019-03-28 12:26 PDT by Robin Morisset
Modified: 2019-03-30 09:02 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Morisset 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).
Comment 1 Robin Morisset 2019-03-30 09:02:24 PDT
Also x % 1 => 0.