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

Issue 285483002: More general dead phi elimination. (Closed)

Created:
6 years, 7 months ago by Florian Schneider
Modified:
6 years, 7 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Vyacheslav Egorov (Google)
Visibility:
Public.

Description

More general dead phi elimination. This CL adds an explicit pass to eliminate dead phis. Until now, we only removed redundant phis that occurred after load elimination locally. Also, constant propagation may result in dead / or redundant phis which are removed by this phase. R=srdjan@google.com Committed: https://code.google.com/p/dart/source/detail?r=36094

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -2 lines) Patch
M runtime/vm/compiler.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.h View 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 2 chunks +75 lines, -2 lines 1 comment Download
M runtime/vm/intermediate_language.h View 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Florian Schneider
6 years, 7 months ago (2014-05-12 16:15:51 UTC) #1
srdjan
lgtm https://codereview.chromium.org/285483002/diff/1/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (right): https://codereview.chromium.org/285483002/diff/1/runtime/vm/flow_graph_optimizer.cc#newcode7308 runtime/vm/flow_graph_optimizer.cc:7308: if (join != NULL) { if ((join != ...
6 years, 7 months ago (2014-05-12 21:21:44 UTC) #2
Vyacheslav Egorov (Google)
Can we merge all dead/redundant phi elimination passes together? I really would like to avoid ...
6 years, 7 months ago (2014-05-13 09:27:31 UTC) #3
Florian Schneider
On 2014/05/13 09:27:31, Vyacheslav Egorov (Google) wrote: > Can we merge all dead/redundant phi elimination ...
6 years, 7 months ago (2014-05-13 09:37:02 UTC) #4
Florian Schneider
Committed patchset #1 manually as r36094 (presubmit successful).
6 years, 7 months ago (2014-05-13 09:49:33 UTC) #5
Vyacheslav Egorov (Google)
Strictly speaking the pass that there is there for load elimination is doing even more ...
6 years, 7 months ago (2014-05-13 09:57:20 UTC) #6
srdjan
6 years, 7 months ago (2014-05-13 14:56:11 UTC) #7
Message was sent while issue was closed.
On 2014/05/13 09:57:20, Vyacheslav Egorov (Google) wrote:
> Strictly speaking the pass that there is there for load elimination is doing
> even more generic optimization because it can find duplicate phis as well. 
> 
> I strongly think we should *stop* adding passes, and start generalizing passes
> where it makes sense instead.

Strongly agreed. Iterating over flow graph again and again slows down the
compilation.

Powered by Google App Engine
This is Rietveld 408576698