Bug 153518

Summary: B3's integer range analysis should know that Mul'ing two sufficiently small numbers will yield a number that still has a meaningful range
Product: WebKit Reporter: Filip Pizlo <fpizlo>
Component: JavaScriptCoreAssignee: Filip Pizlo <fpizlo>
Status: RESOLVED FIXED    
Severity: Normal CC: barraclough, benjamin, commit-queue, ggaren, keith_miller, mark.lam, mhahnenb, msaboff, oliver, saam, sam
Priority: P2    
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 150507    
Attachments:
Description Flags
the patch benjamin: review+

Filip Pizlo
Reported 2016-01-26 15:25:27 PST
I almost added these optimizations to the DFG integer range optimization phase. That phase is very complicated. B3's integer range analysis is trivial. So I added it to B3. Eventually we'll want this same machinery in DFG also.
Attachments
the patch (6.95 KB, patch)
2016-01-26 15:27 PST, Filip Pizlo
benjamin: review+
Filip Pizlo
Comment 1 2016-01-26 15:27:47 PST
Created attachment 269936 [details] the patch
WebKit Commit Bot
Comment 2 2016-01-26 15:30:42 PST
Attachment 269936 [details] did not pass style-queue: ERROR: Source/JavaScriptCore/b3/B3ReduceStrength.cpp:1968: Multi line control clauses should use braces. [whitespace/braces] [4] Total errors found: 1 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
Filip Pizlo
Comment 3 2016-01-26 16:49:27 PST
Note You need to log in before you can comment on or make changes to this bug.