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

Issue 1997443002: Subzero: Initial implementation of BB Local CSE (Closed)

Created:
4 years, 7 months ago by manasijm
Modified:
4 years, 7 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Subzero: Initial implementation of BB Local CSE Adds Cfg::localCse for basic-block local common-subexpression elimination If we have t1 = op b c t2 = op b c This pass will replace future uses of t2 in a basic block by t1. To enable, use -enable-experimental in O2 BUG=none

Patch Set 1 : Initial Implementation #

Total comments: 46

Patch Set 2 : Address comments #

Patch Set 3 : Add asserts to replaceSource #

Patch Set 4 : Add simple test, counts no. of adds in the result #

Patch Set 5 : Modify test for x8632 and 64 to check with and without local-cse #

Total comments: 25

Patch Set 6 : Address comments, add -lcse-max-iters option. #

Total comments: 6

Patch Set 7 : Final touches #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -0 lines) Patch
M src/IceCfg.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/IceCfg.cpp View 1 2 3 4 5 6 1 chunk +126 lines, -0 lines 0 comments Download
M src/IceClFlags.def View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M src/IceInst.h View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M src/IceOperand.h View 1 2 3 4 5 6 4 chunks +15 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX86BaseImpl.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/IceTimerTree.def View 1 chunk +1 line, -0 lines 0 comments Download
A tests_lit/llvm2ice_tests/local-cse.ll View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
manasijm
4 years, 7 months ago (2016-05-18 21:36:20 UTC) #3
Jim Stichnoth
I haven't looked deeply at the core of the algorithm yet. Let's get these structural ...
4 years, 7 months ago (2016-05-19 01:35:50 UTC) #4
manasijm
https://codereview.chromium.org/1997443002/diff/1/src/IceCfg.cpp File src/IceCfg.cpp (right): https://codereview.chromium.org/1997443002/diff/1/src/IceCfg.cpp#newcode509 src/IceCfg.cpp:509: void Cfg::localCSE() { On 2016/05/19 01:35:49, stichnot wrote: > ...
4 years, 7 months ago (2016-05-19 02:01:53 UTC) #5
manasijm
https://codereview.chromium.org/1997443002/diff/1/src/IceCfg.cpp File src/IceCfg.cpp (left): https://codereview.chromium.org/1997443002/diff/1/src/IceCfg.cpp#oldcode30 src/IceCfg.cpp:30: On 2016/05/19 01:35:50, stichnot wrote: > don't remove this ...
4 years, 7 months ago (2016-05-19 17:50:17 UTC) #6
Jim Stichnoth
https://codereview.chromium.org/1997443002/diff/80001/src/IceCfg.cpp File src/IceCfg.cpp (right): https://codereview.chromium.org/1997443002/diff/80001/src/IceCfg.cpp#newcode510 src/IceCfg.cpp:510: void Cfg::localCSE() { I'd like to have a comment ...
4 years, 7 months ago (2016-05-23 16:52:57 UTC) #7
manasijm
https://codereview.chromium.org/1997443002/diff/80001/src/IceCfg.cpp File src/IceCfg.cpp (right): https://codereview.chromium.org/1997443002/diff/80001/src/IceCfg.cpp#newcode510 src/IceCfg.cpp:510: void Cfg::localCSE() { On 2016/05/23 16:52:56, stichnot wrote: > ...
4 years, 7 months ago (2016-05-23 23:13:30 UTC) #8
Jim Stichnoth
otherwise lgtm https://codereview.chromium.org/1997443002/diff/100001/src/IceCfg.cpp File src/IceCfg.cpp (right): https://codereview.chromium.org/1997443002/diff/100001/src/IceCfg.cpp#newcode527 src/IceCfg.cpp:527: SizeT operator()(const Variable *Var) const { return ...
4 years, 7 months ago (2016-05-24 04:58:11 UTC) #9
manasijm
https://codereview.chromium.org/1997443002/diff/100001/src/IceCfg.cpp File src/IceCfg.cpp (right): https://codereview.chromium.org/1997443002/diff/100001/src/IceCfg.cpp#newcode527 src/IceCfg.cpp:527: SizeT operator()(const Variable *Var) const { return Var->hashValue(); } ...
4 years, 7 months ago (2016-05-24 16:54:22 UTC) #11
Jim Stichnoth
4 years, 7 months ago (2016-05-24 22:02:53 UTC) #12
Message was sent while issue was closed.
Committed in 032c315836b8c1ed9ff6bb2be1981b6d4a1a3594.
Not automatically mailed/closed due to authentication fail.

Powered by Google App Engine
This is Rietveld 408576698