DescriptionAdded a simple dead code removal phase.
We iteratively remove all dead Hydrogen instruction until we reach a fixed point. We consider an instruction dead if it is unused, has no observable side effects and is deletable. The last part of the condition is currently not very nice: We basically have to whitelist "safe" instructions, because we are missing more detailed dependencies and/or more detailed tracking of side effects.
We disable dead code elimination for now in our test runners, because we have tons of poorly written tests which wouldn't test anymore what they are supposed to test with this phase enabled. To get test coverage for dead code elimination itself, we should enable it on a few build bots. This is not really a perfect state, but the best we can do for now.
This patch includes a few const-correctness fixes, most of them were necessary for this CL.
Committed: https://code.google.com/p/v8/source/detail?r=12697
Patch Set 1 #Patch Set 2 : Introduced IsDeletable. Const fixes. #
Total comments: 2
Patch Set 3 : Addressed review comments #
Messages
Total messages: 4 (0 generated)
|