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

Issue 1968453002: [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, titzer
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. Trying to re-land http://crrev.com/1948453002 after fixing assembler-x64.cc in http://crrev.com/1962563003. 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/2da70f853d7f680d491c37c72d5ef04a85497ba9 Cr-Commit-Position: refs/heads/master@{#36136}

Patch Set 1 #

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

Messages

Total messages: 17 (7 generated)
epertoso
I'm not sure the test is in the correct file.
4 years, 7 months ago (2016-05-10 10:58:31 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1968453002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1968453002/1
4 years, 7 months ago (2016-05-10 10:58:44 UTC) #6
Benedikt Meurer
Ok with me. LGTM.
4 years, 7 months ago (2016-05-10 10:59:16 UTC) #7
titzer
lgtm
4 years, 7 months ago (2016-05-10 11:00:19 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-10 11:33:39 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1968453002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1968453002/1
4 years, 7 months ago (2016-05-10 12:08:08 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-10 12:09:27 UTC) #13
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/2da70f853d7f680d491c37c72d5ef04a85497ba9 Cr-Commit-Position: refs/heads/master@{#36136}
4 years, 7 months ago (2016-05-10 12:10:02 UTC) #15
titzer
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/1995303003/ by titzer@chromium.org. ...
4 years, 7 months ago (2016-05-20 13:32:42 UTC) #16
titzer
4 years, 7 months ago (2016-05-20 13:34:56 UTC) #17
Message was sent while issue was closed.
On 2016/05/20 13:32:42, titzer wrote:
> A revert of this CL (patchset #1 id:1) has been created in
> https://codereview.chromium.org/1995303003/ by mailto:titzer@chromium.org.
> 
> The reason for reverting is: Breaks a KCS demo:
> 
> BUG=chromium:611976.

Test coverage for this optimization is low, as this is the second time we've
rountripped to Chromium before noticing we broke something. Please add a
significant number of new tests, including instruction selector tests before
relanding.

Powered by Google App Engine
This is Rietveld 408576698