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

Issue 2253293005: [turbofan] Unify Int32Add/Sub representation selection rules. (Closed)

Created:
4 years, 4 months ago by Benedikt Meurer
Modified:
4 years, 4 months ago
Reviewers:
Jarin
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Unify Int32Add/Sub representation selection rules. Unify the representation selection rules for NumberAdd/Subtract and SpeculativeNumberAdd/Subtract wrt. Int32Add/Sub selection. We can safely use Int32Add/Sub as long as the inputs are in the safe additive integer range and the output is either truncated to Word32 or provably in Signed32 or Unsigned32 range. R=jarin@chromium.org Committed: https://crrev.com/99edc1b8e72712af32b6a129763e1c88b155e325 Cr-Commit-Position: refs/heads/master@{#38746}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Improve test case (also deal with Ignition better). #

Patch Set 3 : Address nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -25 lines) Patch
M src/compiler/simplified-lowering.cc View 1 2 2 chunks +11 lines, -25 lines 0 comments Download
A test/mjsunit/compiler/integral32-add-sub.js View 1 1 chunk +131 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
Benedikt Meurer
4 years, 4 months ago (2016-08-19 07:11:52 UTC) #1
Benedikt Meurer
Hey Jaro, Some refactoring to eventually unify the representation selection rules somewhat. Please take a ...
4 years, 4 months ago (2016-08-19 07:13:04 UTC) #4
Jarin
lgtm once the tests are fixed. https://codereview.chromium.org/2253293005/diff/1/src/compiler/simplified-lowering.cc File src/compiler/simplified-lowering.cc (right): https://codereview.chromium.org/2253293005/diff/1/src/compiler/simplified-lowering.cc#newcode1132 src/compiler/simplified-lowering.cc:1132: VisitInt32Binop(node); Use VisitWord32TuncatingBinop ...
4 years, 4 months ago (2016-08-19 08:41:08 UTC) #7
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/2253293005/40001
4 years, 4 months ago (2016-08-19 09:15:50 UTC) #15
Benedikt Meurer
Thanks, done. https://codereview.chromium.org/2253293005/diff/1/src/compiler/simplified-lowering.cc File src/compiler/simplified-lowering.cc (right): https://codereview.chromium.org/2253293005/diff/1/src/compiler/simplified-lowering.cc#newcode1132 src/compiler/simplified-lowering.cc:1132: VisitInt32Binop(node); On 2016/08/19 08:41:07, Jarin wrote: > ...
4 years, 4 months ago (2016-08-19 09:16:02 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-19 09:50:05 UTC) #17
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 09:50:30 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/99edc1b8e72712af32b6a129763e1c88b155e325
Cr-Commit-Position: refs/heads/master@{#38746}

Powered by Google App Engine
This is Rietveld 408576698