Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Issue 2739573004: [turbofan] Extend optimization of flooring integer division. (Closed)

Created:
3 years, 9 months ago by Benedikt Meurer
Modified:
3 years, 9 months ago
Reviewers:
Jarin
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -3 lines) Patch
M src/compiler/operation-typer.cc View 1 2 1 chunk +9 lines, -2 lines 0 comments Download
M src/compiler/typed-optimization.cc View 2 chunks +7 lines, -1 line 0 comments Download
M test/unittests/compiler/typer-unittest.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
Benedikt Meurer
3 years, 9 months ago (2017-03-07 13:34:36 UTC) #1
Jarin
https://codereview.chromium.org/2739573004/diff/1/src/compiler/operation-typer.cc File src/compiler/operation-typer.cc (right): https://codereview.chromium.org/2739573004/diff/1/src/compiler/operation-typer.cc#newcode641 src/compiler/operation-typer.cc:641: (rhs->Min() == -V8_INFINITY || rhs->Max() == +V8_INFINITY); As discussed ...
3 years, 9 months ago (2017-03-07 14:00:27 UTC) #6
Benedikt Meurer
https://codereview.chromium.org/2739573004/diff/1/src/compiler/operation-typer.cc File src/compiler/operation-typer.cc (right): https://codereview.chromium.org/2739573004/diff/1/src/compiler/operation-typer.cc#newcode641 src/compiler/operation-typer.cc:641: (rhs->Min() == -V8_INFINITY || rhs->Max() == +V8_INFINITY); On 2017/03/07 ...
3 years, 9 months ago (2017-03-07 14:16:39 UTC) #11
Jarin
lgtm https://codereview.chromium.org/2739573004/diff/20001/src/compiler/operation-typer.cc File src/compiler/operation-typer.cc (right): https://codereview.chromium.org/2739573004/diff/20001/src/compiler/operation-typer.cc#newcode639 src/compiler/operation-typer.cc:639: !lhs->Is(cache_.kInteger) || !rhs->Is(cache_.kIntegerOrMinusZero) || I believe the rhs ...
3 years, 9 months ago (2017-03-07 14:20:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2739573004/40001
3 years, 9 months ago (2017-03-07 14:20:56 UTC) #15
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 14:46:17 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/f0e7a3174e4470d04c923db577c6b238b2d...

Powered by Google App Engine
This is Rietveld 408576698