NEW 196328
B3ReduceStrength should mask large constants used in a shift
https://bugs.webkit.org/show_bug.cgi?id=196328
Summary B3ReduceStrength should mask large constants used in a shift
Robin Morisset
Reported 2019-03-27 16:53:07 PDT
The semantics of all shifts in B3 include a mask with either 31 or 63. So if we do a shift by a constant greater than that, we should do the mask directly on the constant. This would provide some useful canonicalization, reduce the need to materialize large constants, and could outright delete the shift if after the mask the constant is 0.
Attachments
Patch (2.32 KB, patch)
2019-03-27 16:58 PDT, Robin Morisset
rmorisset: review?
Robin Morisset
Comment 1 2019-03-27 16:58:36 PDT
Note You need to log in before you can comment on or make changes to this bug.