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

Issue 873143002: [turbofan] Better narrow the derived type for the right shift operation. (Closed)

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

Description

[turbofan] Better narrow the derived type for the right shift operation. Currently the derived type of a right shift does not narrow the input type based on the actual shift amount - well it does some narrowing but more can be down. For patterns such as u32[i>>2], which is very common is asm.js code, this limits the ability to later prove that an index bounds check is unnecessary which can have a significant performance impact. Committed: https://crrev.com/531f7ab1d2ae78fba35cbfac94cae98cf306f8ac Cr-Commit-Position: refs/heads/master@{#26270}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address code style nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/typer.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
dougc
5 years, 11 months ago (2015-01-26 04:04:46 UTC) #2
Benedikt Meurer
Nice patch. Just two drive-by-nits from me. https://codereview.chromium.org/873143002/diff/1/src/compiler/typer.cc File src/compiler/typer.cc (right): https://codereview.chromium.org/873143002/diff/1/src/compiler/typer.cc#newcode919 src/compiler/typer.cc:919: if (rhs->Min() ...
5 years, 11 months ago (2015-01-26 07:23:47 UTC) #4
dougc
PTAL
5 years, 11 months ago (2015-01-26 13:21:18 UTC) #5
Jarin
lgtm
5 years, 11 months ago (2015-01-26 13:36:43 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/873143002/20001
5 years, 11 months ago (2015-01-26 13:58:29 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 11 months ago (2015-01-26 14:11:31 UTC) #9
commit-bot: I haz the power
5 years, 11 months ago (2015-01-26 14:11:41 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/531f7ab1d2ae78fba35cbfac94cae98cf306f8ac
Cr-Commit-Position: refs/heads/master@{#26270}

Powered by Google App Engine
This is Rietveld 408576698