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

Issue 2006223004: X87: [x64/ia32] Deal with the non-transitivity of InstructionSelector::CanCover() when folding load… (Closed)

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

X87: [x64/ia32] Deal with the non-transitivity of InstructionSelector::CanCover() when folding loads into branches. port 0d22e7e46a73bebb1e92768a8443a7b7b101051b (r36482) original commit message: 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 mov [address], <value> test [address], <another constant> With this patch, it becomes: mov reg, [address] mov [address], <value> test reg, <another constant> BUG= Committed: https://crrev.com/4d9149e1befb9fa56bc498bd2467134173be85b3 Cr-Commit-Position: refs/heads/master@{#36501}

Patch Set 1 #

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

Messages

Total messages: 8 (3 generated)
zhengxing.li
PTAL, thanks!
4 years, 6 months ago (2016-05-25 05:07:19 UTC) #2
Weiliang
lgtm
4 years, 6 months ago (2016-05-25 08:13:33 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2006223004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2006223004/1
4 years, 6 months ago (2016-05-25 08:34:40 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 6 months ago (2016-05-25 08:57:30 UTC) #6
commit-bot: I haz the power
4 years, 6 months ago (2016-05-25 09:00:05 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/4d9149e1befb9fa56bc498bd2467134173be85b3
Cr-Commit-Position: refs/heads/master@{#36501}

Powered by Google App Engine
This is Rietveld 408576698