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

Issue 2475653002: [turbofan] Do not replace actual duplicates when value numbering (Closed)

Created:
4 years, 1 month ago by Leszek Swirski
Modified:
4 years, 1 month ago
Reviewers:
Benedikt Meurer, *Jarin
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Do not replace actual duplicates when value numbering The value numbering reducer has collision checks for nodes that mutated, but kept the same hash, and are now equivalent to another node. However, it can also accidentally hit itself, if it mutated, changed hash, but ran over the location it was previously in. After this patch, it checks to see if it is comparing against itself, and skips over itself. Additionally, if this check is at the end of the collisions, it opportunistically removes the duplicate entry and reduces the size pressure on the list. We can do the same opportunistic clean up if we happen to find a colliding equivalent entry, since we move it from its original position to a new one. Drive-by change: Ensure that the collision replacement checks types in the same way that normal replacement does. Committed: https://crrev.com/b7761100e367af60411e1f0cb1519d815d1959ce Cr-Commit-Position: refs/heads/master@{#40757}

Patch Set 1 #

Patch Set 2 : Fix replacement type-check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -22 lines) Patch
M src/compiler/value-numbering-reducer.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/value-numbering-reducer.cc View 1 2 chunks +47 lines, -22 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
Leszek Swirski
Hi Benedikt and Jaro, I noticed this happening occasionally in a couple of the larger ...
4 years, 1 month ago (2016-11-03 14:52:54 UTC) #6
Benedikt Meurer
LGTM.
4 years, 1 month ago (2016-11-03 16:12:54 UTC) #7
Jarin
On 2016/11/03 14:52:54, Leszek Swirski wrote: > Hi Benedikt and Jaro, > > I noticed ...
4 years, 1 month ago (2016-11-04 10:03:15 UTC) #8
Leszek Swirski
@Jaro: Cool, done. PTAL, I've marked you down as a required reviewer.
4 years, 1 month ago (2016-11-04 10:16:56 UTC) #13
Jarin
lgtm. Thanks!
4 years, 1 month ago (2016-11-04 10:35:03 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2475653002/20001
4 years, 1 month ago (2016-11-04 10:38:12 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-04 10:40:25 UTC) #20
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:22:24 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b7761100e367af60411e1f0cb1519d815d1959ce
Cr-Commit-Position: refs/heads/master@{#40757}

Powered by Google App Engine
This is Rietveld 408576698