|
Implement loop variable assignment analysis.
This analysis computes the set of variables that are assigned in each loop. This is useful to avoid creating redundant loop phis when building an SSA graph, which just waste memory and require analysis to get rid of.
This CL implements an AST walk for the analysis and plugs the result into the TurboFan graph builder. I left this analysis under a flag for A/B testing and until sufficient unit tests can be developed.
R=danno@chromium.org, mstarzinger@chromium.org
BUG=
Committed: https://code.google.com/p/v8/source/detail?r=24957
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+732 lines, -17 lines) |
Patch |
|
M |
src/compiler/ast-graph-builder.h
|
View
|
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
|
M |
src/compiler/ast-graph-builder.cc
|
View
|
1
|
7 chunks |
+21 lines, -6 lines |
0 comments
|
Download
|
|
A |
src/compiler/ast-loop-assignment-analyzer.h
|
View
|
1
|
1 chunk |
+78 lines, -0 lines |
0 comments
|
Download
|
|
A |
src/compiler/ast-loop-assignment-analyzer.cc
|
View
|
1
|
1 chunk |
+305 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/control-builders.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/compiler/control-builders.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/compiler/graph-builder.h
|
View
|
1
|
3 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/compiler/graph-builder.cc
|
View
|
1
|
1 chunk |
+15 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/flag-definitions.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
test/cctest/cctest.gyp
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
test/cctest/compiler/test-loop-assignment-analysis.cc
|
View
|
1
|
1 chunk |
+294 lines, -0 lines |
0 comments
|
Download
|
|
M |
tools/gyp/v8.gyp
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 5 (0 generated)
|