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

Issue 732103002: [turbofan] remove redundant '& 0x1F' for shifts. (Closed)

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

Description

[turbofan] remove redundant '& 0x1F' for shifts. JavaScript shifts perform an implicit '& 0x1F' on their right operand, this patch removes it when the underlying architecture already does it. BUG= R=bmeurer@chromium.org Committed: https://chromium.googlesource.com/v8/v8/+/481772acdd6cded6b3320cdf7cde1084a01a1b22

Patch Set 1 #

Patch Set 2 : Addressed comments + ror fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -42 lines) Patch
M src/compiler/arm64/instruction-selector-arm64.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/compiler/ia32/instruction-selector-ia32.cc View 1 2 chunks +2 lines, -8 lines 0 comments Download
M src/compiler/machine-operator.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M src/compiler/machine-operator-reducer.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/machine-operator-reducer.cc View 1 6 chunks +34 lines, -11 lines 0 comments Download
M src/compiler/x64/instruction-selector-x64.cc View 1 2 chunks +2 lines, -7 lines 0 comments Download
M test/cctest/compiler/test-machine-operator-reducer.cc View 1 2 chunks +34 lines, -3 lines 0 comments Download
A test/mjsunit/asm/word32ror.js View 1 1 chunk +22 lines, -0 lines 0 comments Download
M test/unittests/compiler/machine-operator-reducer-unittest.cc View 1 2 chunks +10 lines, -11 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Rodolph Perfetta (ARM)
Instead of removing '& 0x1f' in most backend (ia32, x64, arm64 and mips I believe) ...
6 years, 1 month ago (2014-11-17 15:30:23 UTC) #2
Benedikt Meurer
Nice catch. Just three nits/comments: 1. I would prefer another name, i.e. how about WordShiftIsSafe ...
6 years, 1 month ago (2014-11-17 17:42:13 UTC) #3
Rodolph Perfetta (ARM)
> 1. I would prefer another name, i.e. how about WordShiftIsSafe or something > along ...
6 years, 1 month ago (2014-11-20 12:25:24 UTC) #4
Benedikt Meurer
LGTM, thanks for fixing. It should still be possible to detect ROR on ARM, we ...
6 years, 1 month ago (2014-11-20 12:28:49 UTC) #5
Rodolph Perfetta (ARM)
6 years, 1 month ago (2014-11-20 13:09:35 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
481772acdd6cded6b3320cdf7cde1084a01a1b22 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698