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

Unified Diff: src/hydrogen.h

Issue 14676011: Improve dead code elimination by transitively marking live code and removing all dead code. Replace… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rename CanBeEliminated -> CannotBeEliminated, implement IsDeletable() for HPhi. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/flag-definitions.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.h
diff --git a/src/hydrogen.h b/src/hydrogen.h
index a95424a1c9e455ffa4a9664770844aee75b28b7d..8768f872386a7274f36e4476fc7e52abe4bd6688 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -277,17 +277,15 @@ class HGraph: public ZoneObject {
void GlobalValueNumbering();
bool ProcessArgumentsObject();
void EliminateRedundantPhis();
- void EliminateUnreachablePhis();
void Canonicalize();
void OrderBlocks();
void AssignDominators();
void SetupInformativeDefinitions();
void EliminateRedundantBoundsChecks();
void DehoistSimpleArrayIndexComputations();
- void DeadCodeElimination();
void RestoreActualValues();
+ void DeadCodeElimination(const char *phase_name);
void PropagateDeoptimizingMark();
- void EliminateUnusedInstructions();
// Returns false if there are phi-uses of the arguments-object
// which are not supported by the optimizing compiler.
@@ -402,6 +400,9 @@ class HGraph: public ZoneObject {
HConstant* GetConstantSmi(SetOncePointer<HConstant>* pointer,
int32_t integer_value);
+ void MarkLive(HValue* ref, HValue* instr, ZoneList<HValue*>* worklist);
+ void MarkLiveInstructions();
+ void RemoveDeadInstructions();
void MarkAsDeoptimizingRecursively(HBasicBlock* block);
void NullifyUnreachableInstructions();
void InsertTypeConversions(HInstruction* instr);
« no previous file with comments | « src/flag-definitions.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698