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

Issue 1948453002: [turbofan] Take the immediate size in account when narrowing ia32/x64 word comparison operators. (Closed)

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

Description

[turbofan] Take the immediate size in account when narrowing ia32/x64 word comparison operators. Before this patch, we would emit a cmp or test with a memory operand only if both of the operands in the IR were loads. Now if either of them is a load and the other one is an immediate, we can use a memory operand if the load representation machine size is wide enough to represent the latter. Committed: https://crrev.com/a0543313dbd46b0c2e72c91ee3488a7dc6db73e4 Cr-Commit-Position: refs/heads/master@{#36009}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Update. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -29 lines) Patch
M src/compiler/ia32/instruction-selector-ia32.cc View 1 3 chunks +58 lines, -13 lines 0 comments Download
M src/compiler/x64/instruction-selector-x64.cc View 1 4 chunks +72 lines, -16 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
epertoso
4 years, 7 months ago (2016-05-03 12:29:49 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948453002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948453002/1
4 years, 7 months ago (2016-05-03 12:30:28 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-03 12:53:23 UTC) #6
Benedikt Meurer
LGTM with comments. https://codereview.chromium.org/1948453002/diff/1/src/compiler/ia32/instruction-selector-ia32.cc File src/compiler/ia32/instruction-selector-ia32.cc (right): https://codereview.chromium.org/1948453002/diff/1/src/compiler/ia32/instruction-selector-ia32.cc#newcode1175 src/compiler/ia32/instruction-selector-ia32.cc:1175: bool GetMachineRepresentation(Node* node, Maybe rename this ...
4 years, 7 months ago (2016-05-04 04:05:47 UTC) #8
epertoso
https://codereview.chromium.org/1948453002/diff/1/src/compiler/ia32/instruction-selector-ia32.cc File src/compiler/ia32/instruction-selector-ia32.cc (right): https://codereview.chromium.org/1948453002/diff/1/src/compiler/ia32/instruction-selector-ia32.cc#newcode1175 src/compiler/ia32/instruction-selector-ia32.cc:1175: bool GetMachineRepresentation(Node* node, On 2016/05/04 at 04:05:47, Benedikt Meurer ...
4 years, 7 months ago (2016-05-04 08:58:03 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948453002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948453002/20001
4 years, 7 months ago (2016-05-04 08:58:17 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-04 09:21:52 UTC) #14
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/a0543313dbd46b0c2e72c91ee3488a7dc6db73e4 Cr-Commit-Position: refs/heads/master@{#36009}
4 years, 7 months ago (2016-05-04 09:22:09 UTC) #16
JF
I believe this change causes failures on the WebAssembly waterfall wasm-stat.us. I bisected it to: ...
4 years, 7 months ago (2016-05-05 00:28:22 UTC) #18
JF
On 2016/05/05 00:28:22, JF wrote: > I believe this change causes failures on the WebAssembly ...
4 years, 7 months ago (2016-05-05 18:25:47 UTC) #19
binji
On 2016/05/05 18:25:47, JF wrote: > On 2016/05/05 00:28:22, JF wrote: > > I believe ...
4 years, 7 months ago (2016-05-05 23:46:03 UTC) #20
titzer
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1959603002/ by titzer@chromium.org. ...
4 years, 7 months ago (2016-05-06 07:49:50 UTC) #21
JF
On 2016/05/06 07:49:50, titzer wrote: > A revert of this CL (patchset #2 id:20001) has ...
4 years, 7 months ago (2016-05-06 16:24:42 UTC) #22
epertoso
4 years, 7 months ago (2016-05-09 15:00:35 UTC) #23
Message was sent while issue was closed.
On 2016/05/06 at 16:24:42, jfb wrote:
> On 2016/05/06 07:49:50, titzer wrote:
> > A revert of this CL (patchset #2 id:20001) has been created in
> > https://codereview.chromium.org/1959603002/ by mailto:titzer@chromium.org.
> > 
> > The reason for reverting is: Breaks WASM; please also add tests when
relanding..
> 
> Thanks! This fixed the waterfall. I haven't checked whether it fixed
AngryBots.

Turns out earlier this year I introduced a bug in assembler-x64.cc. I've added a
test and fixed the assembler in http://crrev.com/1962563003.

The 3 tests mentioned above are now passing again.

Powered by Google App Engine
This is Rietveld 408576698