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

Issue 1473073004: [compiler] merge binary-operator-reducer (Closed)

Created:
5 years ago by fedor.indutny
Modified:
5 years ago
Reviewers:
Benedikt Meurer, titzer
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

[compiler] merge binary-operator-reducer Merge BinaryOperatorReducer into the MachineOperatorReducer class. It does not need `Revisit()` calls, because the newly inserted nodes are visited anyway, and there are no other methods that need AdvancedReducer there. BUG= R=titzer@chromium.org Committed: https://crrev.com/993ba9d2529a6401b3040b9263f8d06db7dbb4f1 Cr-Commit-Position: refs/heads/master@{#32298}

Patch Set 1 #

Patch Set 2 : range fixes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -285 lines) Patch
M BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
D src/compiler/binary-operator-reducer.h View 1 chunk +0 lines, -52 lines 0 comments Download
D src/compiler/binary-operator-reducer.cc View 1 chunk +0 lines, -128 lines 0 comments Download
M src/compiler/machine-operator-reducer.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/machine-operator-reducer.cc View 1 3 chunks +84 lines, -2 lines 1 comment Download
M src/compiler/pipeline.cc View 2 chunks +0 lines, -4 lines 0 comments Download
D test/unittests/compiler/binary-operator-reducer-unittest.cc View 1 chunk +0 lines, -94 lines 0 comments Download
M test/unittests/compiler/machine-operator-reducer-unittest.cc View 1 1 chunk +60 lines, -0 lines 0 comments Download
M test/unittests/unittests.gyp View 1 chunk +0 lines, -1 line 0 comments Download
M tools/gyp/v8.gyp View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
fedor.indutny
Hello! Sorry, but one more patch from me. :) Thank you, Fedor.
5 years ago (2015-11-25 02:00:30 UTC) #1
titzer
On 2015/11/25 02:00:30, fedor.indutny wrote: > Hello! > > Sorry, but one more patch from ...
5 years ago (2015-11-25 09:34:07 UTC) #2
fedor.indutny
Thanks! I have added one more change, but going to hit CQ button anyway. It ...
5 years ago (2015-11-25 17:17:25 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1473073004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1473073004/20001
5 years ago (2015-11-25 17:17:36 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-11-25 19:25:04 UTC) #7
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/993ba9d2529a6401b3040b9263f8d06db7dbb4f1 Cr-Commit-Position: refs/heads/master@{#32298}
5 years ago (2015-11-25 19:25:22 UTC) #9
Benedikt Meurer
I'm sorry, but this change is not lgtm. The MachineOperatorReducer must not access types. Some ...
5 years ago (2015-11-25 20:09:10 UTC) #11
fedor.indutny
On 2015/11/25 20:09:10, Benedikt Meurer wrote: > I'm sorry, but this change is not lgtm. ...
5 years ago (2015-11-25 21:20:15 UTC) #12
Benedikt Meurer
I'm afraid I'll have to revert those changes. Accessing types in a machine graph is ...
5 years ago (2015-11-26 03:49:53 UTC) #13
Benedikt Meurer
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1476763006/ by bmeurer@chromium.org. ...
5 years ago (2015-11-26 03:51:57 UTC) #14
fedor.indutny
On 2015/11/26 03:49:53, Benedikt Meurer wrote: > I'm afraid I'll have to revert those changes. ...
5 years ago (2015-11-26 03:52:16 UTC) #15
Benedikt Meurer
On 2015/11/26 03:52:16, fedor.indutny wrote: > On 2015/11/26 03:49:53, Benedikt Meurer wrote: > > I'm ...
5 years ago (2015-11-26 04:03:50 UTC) #16
fedor.indutny
5 years ago (2015-11-26 04:25:03 UTC) #17
Message was sent while issue was closed.
On 2015/11/26 04:03:50, Benedikt Meurer wrote:
> On 2015/11/26 03:52:16, fedor.indutny wrote:
> > On 2015/11/26 03:49:53, Benedikt Meurer wrote:
> > > I'm afraid I'll have to revert those changes. Accessing types in a machine
> > graph
> > > is not safe by design because we don't proper typing for machine operators
> and
> > > we do non type preserving optimizations. In addition to that we want to go
> for
> > > concurrent recompilation soonish, and ideally the MachineOperatorReducer
> would
> > > be able to run concurrently, which means it must not look at the heap,
which
> > > means it must not rely on the typed.
> > 
> > This is very sad.
> > 
> > > 
> > > I think your optimization can be implemented in an even easier way on the
> > > simplified level. Can you send me samples of JS code where this should
kick
> > in?
> > > (via mail)
> > 
> > Absolutely, it is here:
> >
>
https://github.com/v8/v8/blob/64efa2a904773816968992628f0bf0f1b7ae82be/test/m...
> > , other overflowing functions should obviously not be optimized.
> > 
> > I would still love to contribute this to V8 in one form or another, so if
you
> > feel like I could help you with this - please let me know.
> > 
> > Thanks!
> 
> Definitely, we'll make this work. My feeling is that this should be easy(ish)
> when done during representation selection. Not sure if we need int64 types for
> that tho. I'll talk to jarin@ who's currently refactoring that part.
> 
> I'm sorry that you might have wasted some time going in the slightly wrong
> direction. I only saw this fly by yesterday. We really value your contribution
> to TurboFan (which is not easy these days as a lot of internal knowledge is
> required). Thanks

No problem at all, feel free to ping me about it anytime! Thanks!

Powered by Google App Engine
This is Rietveld 408576698