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

Issue 721723004: [turbofan] Remove int32 add/subtract narrowing during typed lowering. (Closed)

Created:
6 years, 1 month ago by Jarin
Modified:
6 years, 1 month ago
Reviewers:
Benedikt Meurer, titzer
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Project:
v8
Visibility:
Public.

Description

[turbofan] Remove int32 narrowing during typed lowering. With Int32Add we lose the int/uint distinction, so later, in simplified lowering we can make a wrong decision. E.g., see the attached test case, where we lower NumberAdd -> Int32Add because inputs are Uint32, but during simplified lowering we change the inputs to Int32, so we get a wrong result. Simplified lowering will lower the NumberAdd operations anyway, so we should lose performance. BUG= R=bmeurer@chromium.org Committed: https://chromium.googlesource.com/v8/v8/+/c3af691e72b7b9003c89caa7c43490ce3d3e6c65

Patch Set 1 #

Total comments: 1

Patch Set 2 : Resurrect tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -74 lines) Patch
M src/compiler/js-typed-lowering.cc View 1 chunk +1 line, -39 lines 0 comments Download
M test/cctest/compiler/test-js-typed-lowering.cc View 1 2 chunks +22 lines, -33 lines 0 comments Download
A + test/mjsunit/regress/regress-unsigned-mul-add.js View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Jarin
Could you take a look please?
6 years, 1 month ago (2014-11-14 14:21:38 UTC) #2
titzer
https://codereview.chromium.org/721723004/diff/1/test/cctest/compiler/test-js-typed-lowering.cc File test/cctest/compiler/test-js-typed-lowering.cc (right): https://codereview.chromium.org/721723004/diff/1/test/cctest/compiler/test-js-typed-lowering.cc#newcode1216 test/cctest/compiler/test-js-typed-lowering.cc:1216: TEST(Int32AddLowering) { I think we should keep these tests ...
6 years, 1 month ago (2014-11-14 14:26:20 UTC) #3
Benedikt Meurer
LGTM
6 years, 1 month ago (2014-11-16 11:23:38 UTC) #4
Jarin
6 years, 1 month ago (2014-11-17 09:04:57 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
c3af691e72b7b9003c89caa7c43490ce3d3e6c65 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698