Description[turbofan] Extend optimization of flooring integer division.
So far we only recognize the special
NumberFloor(NumberDivide(lhs, rhs))
subgraph when both lhs and rhs are in the Unsigned32 range, and the
result is a PlainNumber. Extend this pattern matching to also cover
NumberFloor(SpeculativeNumberDivide(lhs, rhs))
and to replace the NumberFloor with NumberToInt32 truncation if the
lhs value is in Signed32 range and the rhs is in Unsigned32 range.
R=jarin@chromium.org
BUG=v8:5267
Review-Url: https://codereview.chromium.org/2739573004
Cr-Commit-Position: refs/heads/master@{#43642}
Committed: https://chromium.googlesource.com/v8/v8/+/f0e7a3174e4470d04c923db577c6b238b2d20f09
Patch Set 1 #
Total comments: 2
Patch Set 2 : Address feedback. #
Total comments: 1
Patch Set 3 : Address offline feedback. #
Messages
Total messages: 18 (12 generated)
|