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

Issue 1693433002: Revert of [turbofan] Fixes the code generation for branches on x64 when the condition is Word64Equal. (Closed)

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

Description

Revert of [turbofan] Fixes the code generation for branches on x64 when the condition is Word64Equal. (patchset #1 id:1 of https://codereview.chromium.org/1677503002/ ) Reason for revert: Code like the example given in the CL description was produced, for example, by code-stub-assembler.cc. Reverting this, and try to fix the root cause instead. Original issue's description: > [turbofan] Fixes the code generation for branches on x64 when the condition is Word64Equal. > > Before: > > REX.W cmpq r9,r8 > setzl r8l > movzxbl r8,r8 > REX.W cmpq r8,0x0 > jz 185 > > After: > > REX.W cmpq r9,r8 > jnz 149 > > Committed: https://crrev.com/75cc8352d06aada2e9131fdae793299ef73fb639 > Cr-Commit-Position: refs/heads/master@{#33784} TBR=bmeurer@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. Committed: https://crrev.com/a979a5c0cfcc39de656c7f6e2de7127a833aa914 Cr-Commit-Position: refs/heads/master@{#33884}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -21 lines) Patch
M src/compiler/x64/instruction-selector-x64.cc View 3 chunks +35 lines, -21 lines 0 comments Download

Messages

Total messages: 3 (1 generated)
epertoso
Created Revert of [turbofan] Fixes the code generation for branches on x64 when the condition ...
4 years, 10 months ago (2016-02-11 09:22:42 UTC) #1
caitp
3 years, 4 months ago (2017-08-01 16:12:23 UTC) #3
Message was sent while issue was closed.
On 2016/02/11 09:22:42, epertoso wrote:
> Created Revert of [turbofan] Fixes the code generation for branches on x64
when
> the condition is Word64Equal.

I'm wondering if there's any more information about this revert? The CL
description looks relevant to
https://chromium-review.googlesource.com/c/594500/6/src%252Fcode-stub-assembl...

---

I'm guessing this didn't actually produce the intended effect (at least for
CodeStubAssembler code?)

I was thinking about how this could be solved as an arch-specific
InstructionSelector::VisitPhi(), so that Intel arches could represent the Phi
using the status register, instead of a new/temporary reg. But I wasn't sure how
much work it would be, or if that approach would actually work at all. For the
case linked above, it doesn't really matter in practice, but it would be
interesting to get it generating better code.

Powered by Google App Engine
This is Rietveld 408576698