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

Issue 14676011: Improve dead code elimination by transitively marking live code and removing all dead code. Replace… (Closed)

Created:
7 years, 7 months ago by titzer
Modified:
7 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Improve dead code elimination by transitively marking live code and removing all dead code. Replace unreachable phi removal algorithm with the new dead code elimination pass, which is more thorough. Committed: https://code.google.com/p/v8/source/detail?r=14661

Patch Set 1 #

Total comments: 17

Patch Set 2 : Rename functions and clean up comments based on review feedback #

Patch Set 3 : Comment fix. #

Total comments: 28

Patch Set 4 : More cleanups after review. #

Patch Set 5 : Split main algorithm of dead code elimination into two smaller functions. #

Total comments: 1

Patch Set 6 : Rename CanBeEliminated -> CannotBeEliminated, implement IsDeletable() for HPhi. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+390 lines, -207 lines) Patch
M src/flag-definitions.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/hydrogen.h View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 4 5 5 chunks +87 lines, -63 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 3 4 5 8 chunks +10 lines, -7 lines 0 comments Download
M src/hydrogen-instructions.cc View 1 2 3 2 chunks +1 line, -4 lines 0 comments Download
A + test/mjsunit/compiler/dead-code.js View 1 1 chunk +48 lines, -24 lines 0 comments Download
A + test/mjsunit/compiler/dead-code2.js View 1 1 chunk +48 lines, -22 lines 0 comments Download
A + test/mjsunit/compiler/dead-code3.js View 1 1 chunk +47 lines, -24 lines 0 comments Download
A + test/mjsunit/compiler/dead-code4.js View 1 1 chunk +47 lines, -24 lines 0 comments Download
A + test/mjsunit/compiler/dead-code5.js View 1 1 chunk +58 lines, -24 lines 0 comments Download
A + test/mjsunit/compiler/dead-code6.js View 1 1 chunk +40 lines, -11 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
titzer
7 years, 7 months ago (2013-05-07 08:05:54 UTC) #1
Sven Panne
First round of comments, adding Jakob for a 2nd opinion on the 1st DCE phase/flag. ...
7 years, 7 months ago (2013-05-07 13:32:10 UTC) #2
Jakob Kummerow
https://codereview.chromium.org/14676011/diff/1/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): https://codereview.chromium.org/14676011/diff/1/src/hydrogen-instructions.h#newcode813 src/hydrogen-instructions.h:813: // used during dead code elimination to indicate the ...
7 years, 7 months ago (2013-05-08 12:07:24 UTC) #3
Sven Panne
Regarding the unit tests: Unless there is a deep reason (which I currently can't see), ...
7 years, 7 months ago (2013-05-13 09:31:55 UTC) #4
titzer
On 2013/05/13 09:31:55, Sven Panne wrote: > Regarding the unit tests: Unless there is a ...
7 years, 7 months ago (2013-05-13 13:29:30 UTC) #5
titzer
https://codereview.chromium.org/14676011/diff/1/src/hydrogen-instructions.cc File src/hydrogen-instructions.cc (right): https://codereview.chromium.org/14676011/diff/1/src/hydrogen-instructions.cc#newcode1900 src/hydrogen-instructions.cc:1900: stream->Add("%s%s]", On 2013/05/07 13:32:10, Sven Panne wrote: > Do ...
7 years, 7 months ago (2013-05-13 13:29:38 UTC) #6
Sven Panne
https://codereview.chromium.org/14676011/diff/10007/src/hydrogen-instructions.cc File src/hydrogen-instructions.cc (right): https://codereview.chromium.org/14676011/diff/10007/src/hydrogen-instructions.cc#newcode1901 src/hydrogen-instructions.cc:1901: IsConvertibleToInteger() ? "" : "_ncti"); On 2013/05/13 13:29:39, titzer ...
7 years, 7 months ago (2013-05-13 14:55:52 UTC) #7
titzer
https://codereview.chromium.org/14676011/diff/10007/src/hydrogen-instructions.cc File src/hydrogen-instructions.cc (right): https://codereview.chromium.org/14676011/diff/10007/src/hydrogen-instructions.cc#newcode1901 src/hydrogen-instructions.cc:1901: IsConvertibleToInteger() ? "" : "_ncti"); On 2013/05/13 14:55:52, Sven ...
7 years, 7 months ago (2013-05-13 18:11:13 UTC) #8
Sven Panne
Final round, I think. :-) Apart from the IsDeletable comment, why do we have several ...
7 years, 7 months ago (2013-05-14 07:57:31 UTC) #9
titzer
On 2013/05/14 07:57:31, Sven Panne wrote: > Final round, I think. :-) Apart from the ...
7 years, 7 months ago (2013-05-14 09:52:13 UTC) #10
Sven Panne
LGTM. Note that my previous comments were about the random partitioning of DCE tests into ...
7 years, 7 months ago (2013-05-14 11:12:03 UTC) #11
titzer
7 years, 7 months ago (2013-05-14 13:11:04 UTC) #12
Message was sent while issue was closed.
Committed patchset #6 manually as r14661 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698