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.
Created attachment 269936 [details]
Attachment 269936 [details] did not pass style-queue:
Total errors found: 1 in 3 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Landed in http://trac.webkit.org/changeset/195637