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

Issue 2008493002: [x64/ia32] Deal with the non-transitivity of InstructionSelector::CanCover() when folding loads int… (Closed)

Created:
4 years, 7 months ago by epertoso
Modified:
4 years, 6 months ago
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

[x64/ia32] Deal with the non-transitivity of InstructionSelector::CanCover() when folding loads into branches. Sequences like: 1: Load[kRepWord32|kTypeInt32](<address>, ...) 2: Word32And(1, <constant>) 3: Word32Equal(2, <another constant>) 4: Store[(kRepWord32 : NoWriteBarrier)](<address>, <value>) 5: Branch[None](3, ...) -> B1, B2 where #1 and #4 refer to the same memory location, are problematic because in VisitBranch we assume that 'InstructionSelector::CanCover()' is transitive. What happens is that CanCover(5, 3) is true (3 is a pure op), and so are CanCover(3, 2), CanCover(2, 1), but the effect level of 5 and 3 never gets checked because 3 is a pure op. Upon VisitBranch, we ended up materializing: mov [address], <value> test [address], <another constant> With this patch, it becomes: mov reg, [address] mov [address], <value> test reg, <another constant> BUG=chromium:611976 Committed: https://crrev.com/0d22e7e46a73bebb1e92768a8443a7b7b101051b Cr-Commit-Position: refs/heads/master@{#36482}

Patch Set 1 #

Patch Set 2 : Update #

Patch Set 3 : Update. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -10 lines) Patch
M src/compiler/ia32/instruction-selector-ia32.cc View 1 3 chunks +15 lines, -5 lines 0 comments Download
M src/compiler/instruction-selector.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M src/compiler/x64/instruction-selector-x64.cc View 1 3 chunks +15 lines, -5 lines 0 comments Download
M test/cctest/compiler/test-branch-combine.cc View 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (14 generated)
epertoso
Please take a look. I'm not sure this is the right way to solve the ...
4 years, 7 months ago (2016-05-23 14:59: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/2008493002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2008493002/1
4 years, 7 months ago (2016-05-24 08:06:14 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_win64_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win64_rel_ng/builds/7757) v8_win64_rel_ng_triggered on ...
4 years, 7 months ago (2016-05-24 08:28:44 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2008493002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2008493002/20001
4 years, 7 months ago (2016-05-24 11:44:48 UTC) #10
Benedikt Meurer
lgtm
4 years, 7 months ago (2016-05-24 12:13:16 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-24 12:14:15 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2008493002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2008493002/40001
4 years, 7 months ago (2016-05-24 15:27:16 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-24 16:10:34 UTC) #19
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/0d22e7e46a73bebb1e92768a8443a7b7b101051b Cr-Commit-Position: refs/heads/master@{#36482}
4 years, 7 months ago (2016-05-24 16:11:51 UTC) #21
peter.verswyvelen
It seems my customer (www.smartphoto.com) is affected by this bug, our HTML5 photo product editor ...
4 years, 6 months ago (2016-06-07 09:20:32 UTC) #23
epertoso
hablich@: do we have an ETA on this?
4 years, 6 months ago (2016-06-07 10:25:21 UTC) #25
peter.verswyvelen
On 2016/06/07 10:25:21, epertoso wrote: > hablich@: do we have an ETA on this? I ...
4 years, 6 months ago (2016-06-07 14:03:12 UTC) #26
peter.verswyvelen
4 years, 6 months ago (2016-06-07 14:03:14 UTC) #27
Message was sent while issue was closed.
On 2016/06/07 10:25:21, epertoso wrote:
> hablich@: do we have an ETA on this?

I was wrong, it seems we got bitten by another V8 bug,
https://bugs.chromium.org/p/chromium/issues/detail?id=604033

Powered by Google App Engine
This is Rietveld 408576698