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 2585713002: [turbofan] Use Node input iterators where possible (Closed)

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

Description

[turbofan] Use Node input iterators where possible Changes some for loops to use node->inputs() instead of iterating over InputCount and accessing InputAt(i). This saves some checks for "has_inline_inputs" and so some branches. Review-Url: https://codereview.chromium.org/2585713002 Cr-Commit-Position: refs/heads/master@{#42024} Committed: https://chromium.googlesource.com/v8/v8/+/0b10c04473587aefc6ef5414473a65aa1707440a

Patch Set 1 #

Patch Set 2 : Remove iterator (and so, pointer) comparisons #

Patch Set 3 : Use == instead of DCHECK_EQ because of missing operator<< for iterators #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -22 lines) Patch
M src/compiler/branch-elimination.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/compiler/escape-analysis-reducer.cc View 1 chunk +1 line, -2 lines 0 comments Download
M src/compiler/graph-reducer.cc View 1 2 2 chunks +27 lines, -12 lines 0 comments Download
M src/compiler/node.h View 1 3 chunks +26 lines, -0 lines 0 comments Download
M src/compiler/value-numbering-reducer.cc View 2 chunks +13 lines, -6 lines 0 comments Download

Messages

Total messages: 23 (17 generated)
Leszek Swirski
Hi Jaro, I see some small but non-zero compile time improvements with this change. On ...
4 years ago (2016-12-16 10:00:54 UTC) #3
Leszek Swirski
Hi Benedikt and Jaro, I thought I'd sent this out for review, but looks like ...
4 years ago (2016-12-20 15:45:38 UTC) #7
Benedikt Meurer
LGTM from me, although I'm not sure that operator< on pointers is a good idea, ...
4 years ago (2016-12-20 18:50:45 UTC) #8
Jarin
lgtm. (Sorry, but I have to say this: oh god, this is ugly.)
4 years ago (2016-12-21 06:16:12 UTC) #9
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/2585713002/40001
3 years, 11 months ago (2017-01-03 11:04:08 UTC) #20
commit-bot: I haz the power
3 years, 11 months ago (2017-01-03 11:29:28 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/0b10c04473587aefc6ef5414473a65aa170...

Powered by Google App Engine
This is Rietveld 408576698