Bug 196363

Summary: B3 missing peephole optimization: x/x => 1 and x%x => 0
Product: WebKit Reporter: Robin Morisset <rmorisset>
Component: JavaScriptCoreAssignee: Robin Morisset <rmorisset>
Status: NEW    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 196361    

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.