[phc-internals] [phc commit] r1754 - in branches/dataflow: . src src/optimize

codesite-noreply at google.com codesite-noreply at google.com
Mon Oct 6 18:30:10 IST 2008


Author: paul.biggar
Date: Mon Oct  6 10:28:43 2008
New Revision: 1754

Removed:
    branches/dataflow/src/optimize/Copy_propagation.cpp
    branches/dataflow/src/optimize/Copy_propagation.h
    branches/dataflow/src/optimize/Fix_point.cpp
    branches/dataflow/src/optimize/Fix_point.h
    branches/dataflow/src/optimize/Prune_symbol_table.cpp
    branches/dataflow/src/optimize/Prune_symbol_table.h
    branches/dataflow/src/optimize/Use_def_counter.cpp
    branches/dataflow/src/optimize/Use_def_counter.h
Modified:
    branches/dataflow/Makefile.am
    branches/dataflow/Makefile.in
    branches/dataflow/src/phc.cpp

Log:
Remove the unused (old) optimizations. Live_variable_analysis remains,  
simply because it can still be used to create pruned-SSA form, which may  
have performance improvements since it avoids superfluous phi arguments (as  
in, there will be fewer when we move it out of SSA form).


Modified: branches/dataflow/Makefile.am
==============================================================================
--- branches/dataflow/Makefile.am	(original)
+++ branches/dataflow/Makefile.am	Mon Oct  6 10:28:43 2008
@@ -157,16 +157,12 @@
  	src/optimize/CFG.h										\
  	src/optimize/CFG_visitor.cpp							\
  	src/optimize/CFG_visitor.h								\
-	src/optimize/Copy_propagation.cpp					\
-	src/optimize/Copy_propagation.h						\
  	src/optimize/Dead_code_elimination.cpp				\
  	src/optimize/Dead_code_elimination.h				\
  	src/optimize/Def_use.cpp 								\
  	src/optimize/Def_use.h									\
  	src/optimize/Edge.cpp									\
  	src/optimize/Edge.h										\
-	src/optimize/Fix_point.cpp								\
-	src/optimize/Fix_point.h								\
  	src/optimize/Flow_visitor.cpp							\
  	src/optimize/Flow_visitor.h							\
  	src/optimize/If_simplification.cpp					\
@@ -179,16 +175,12 @@
  	src/optimize/Out_of_SSA.h								\
  	src/optimize/Phi.cpp										\
  	src/optimize/Phi.h										\
-	src/optimize/Prune_symbol_table.cpp					\
-	src/optimize/Prune_symbol_table.h					\
  	src/optimize/SCCP.cpp									\
  	src/optimize/SCCP.h										\
  	src/optimize/Set.cpp										\
  	src/optimize/Set.h										\
  	src/optimize/SSA.cpp										\
  	src/optimize/SSA.h										\
-	src/optimize/Use_def_counter.cpp 					\
-	src/optimize/Use_def_counter.h						\
  	src/optimize/Visit_once.cpp							\
  	src/optimize/Visit_once.h								\
  	src/parsing/Parse_buffer.cpp							\

Modified: branches/dataflow/Makefile.in
==============================================================================
--- branches/dataflow/Makefile.in	(original)
+++ branches/dataflow/Makefile.in	Mon Oct  6 10:28:43 2008
@@ -100,14 +100,13 @@
  	Lower_dynamic_definitions.lo Lower_method_invocations.lo \
  	AttrMap.lo base64.lo Boolean.lo demangle.lo error.lo \
  	Integer.lo Object.lo String.lo Address_taken.lo Basic_block.lo \
-	CFG.lo CFG_visitor.lo Copy_propagation.lo \
-	Dead_code_elimination.lo Def_use.lo Edge.lo Fix_point.lo \
-	Flow_visitor.lo If_simplification.lo Lattice.lo \
-	Live_variable_analysis.lo Phi.lo Prune_symbol_table.lo SCCP.lo \
-	Set.lo SSA.lo Use_def_counter.lo Visit_once.lo Parse_buffer.lo \
-	parse.lo PHP_context.lo XML_parser.lo Optimization_pass.lo \
-	Pass_manager.lo Plugin_pass.lo AST_unparser.lo \
-	Constant_folding.lo DOT_unparser.lo Invalid_check.lo \
+	CFG.lo CFG_visitor.lo Dead_code_elimination.lo Def_use.lo \
+	Edge.lo Flow_visitor.lo If_simplification.lo Lattice.lo \
+	Live_variable_analysis.lo Phi.lo SCCP.lo Set.lo SSA.lo \
+	Visit_once.lo Parse_buffer.lo parse.lo PHP_context.lo \
+	XML_parser.lo Optimization_pass.lo Pass_manager.lo \
+	Plugin_pass.lo AST_unparser.lo Constant_folding.lo \
+	DOT_unparser.lo Invalid_check.lo \
  	Note_top_level_declarations.lo Process_includes.lo \
  	Remove_concat_null.lo Remove_parser_temporaries.lo \
  	Strip_unparser_attributes.lo Token_conversion.lo \
@@ -696,16 +695,12 @@
  	src/optimize/CFG.h										\
  	src/optimize/CFG_visitor.cpp							\
  	src/optimize/CFG_visitor.h								\
-	src/optimize/Copy_propagation.cpp					\
-	src/optimize/Copy_propagation.h						\
  	src/optimize/Dead_code_elimination.cpp				\
  	src/optimize/Dead_code_elimination.h				\
  	src/optimize/Def_use.cpp 								\
  	src/optimize/Def_use.h									\
  	src/optimize/Edge.cpp									\
  	src/optimize/Edge.h										\
-	src/optimize/Fix_point.cpp								\
-	src/optimize/Fix_point.h								\
  	src/optimize/Flow_visitor.cpp							\
  	src/optimize/Flow_visitor.h							\
  	src/optimize/If_simplification.cpp					\
@@ -718,16 +713,12 @@
  	src/optimize/Out_of_SSA.h								\
  	src/optimize/Phi.cpp										\
  	src/optimize/Phi.h										\
-	src/optimize/Prune_symbol_table.cpp					\
-	src/optimize/Prune_symbol_table.h					\
  	src/optimize/SCCP.cpp									\
  	src/optimize/SCCP.h										\
  	src/optimize/Set.cpp										\
  	src/optimize/Set.h										\
  	src/optimize/SSA.cpp										\
  	src/optimize/SSA.h										\
-	src/optimize/Use_def_counter.cpp 					\
-	src/optimize/Use_def_counter.h						\
  	src/optimize/Visit_once.cpp							\
  	src/optimize/Visit_once.h								\
  	src/parsing/Parse_buffer.cpp							\
@@ -1257,7 +1248,6 @@
  @AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/Comment_ifs.Plo at am__quote@
  @AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/Compile_C.Plo at am__quote@
  @AMDEP_TRUE@@am__include@  
@am__quote at ./$(DEPDIR)/Constant_folding.Plo at am__quote@
- at AMDEP_TRUE@@am__include@  
@am__quote at ./$(DEPDIR)/Copy_propagation.Plo at am__quote@
  @AMDEP_TRUE@@am__include@  
@am__quote at ./$(DEPDIR)/DOT_unparser.Plo at am__quote@
  @AMDEP_TRUE@@am__include@  
@am__quote at ./$(DEPDIR)/Dead_code_elimination.Plo at am__quote@
  @AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/Def_use.Plo at am__quote@
@@ -1266,7 +1256,6 @@
  @AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/Echo_split.Plo at am__quote@
  @AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/Edge.Plo at am__quote@
  @AMDEP_TRUE@@am__include@  
@am__quote at ./$(DEPDIR)/Expand_includes.Plo at am__quote@
- at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/Fix_point.Plo at am__quote@
  @AMDEP_TRUE@@am__include@  
@am__quote at ./$(DEPDIR)/Flow_visitor.Plo at am__quote@
  @AMDEP_TRUE@@am__include@  
@am__quote at ./$(DEPDIR)/Foreach_uppering.Plo at am__quote@
  @AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/General.Plo at am__quote@
@@ -1309,7 +1298,6 @@
  @AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/Plugin_pass.Plo at am__quote@
  @AMDEP_TRUE@@am__include@  
@am__quote at ./$(DEPDIR)/Pre_post_op_shredder.Plo at am__quote@
  @AMDEP_TRUE@@am__include@  
@am__quote at ./$(DEPDIR)/Process_includes.Plo at am__quote@
- at AMDEP_TRUE@@am__include@  
@am__quote at ./$(DEPDIR)/Prune_symbol_table.Plo at am__quote@
  @AMDEP_TRUE@@am__include@  
@am__quote at ./$(DEPDIR)/Remove_concat_null.Plo at am__quote@
  @AMDEP_TRUE@@am__include@  
@am__quote at ./$(DEPDIR)/Remove_parser_temporaries.Plo at am__quote@
  @AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/SCCP.Plo at am__quote@
@@ -1321,7 +1309,6 @@
  @AMDEP_TRUE@@am__include@  
@am__quote at ./$(DEPDIR)/Strip_comments.Plo at am__quote@
  @AMDEP_TRUE@@am__include@  
@am__quote at ./$(DEPDIR)/Strip_unparser_attributes.Plo at am__quote@
  @AMDEP_TRUE@@am__include@  
@am__quote at ./$(DEPDIR)/Token_conversion.Plo at am__quote@
- at AMDEP_TRUE@@am__include@  
@am__quote at ./$(DEPDIR)/Use_def_counter.Plo at am__quote@
  @AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/Visit_once.Plo at am__quote@
  @AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/XML_parser.Plo at am__quote@
  @AMDEP_TRUE@@am__include@  
@am__quote at ./$(DEPDIR)/XML_unparser.Plo at am__quote@
@@ -1765,13 +1752,6 @@
  @AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE)  
$(depcomp) @AMDEPBACKSLASH@
  @am__fastdepCXX_FALSE@	$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS)  
$(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES)  
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o  
CFG_visitor.lo `test -f 'src/optimize/CFG_visitor.cpp' ||  
echo '$(srcdir)/'`src/optimize/CFG_visitor.cpp

-Copy_propagation.lo: src/optimize/Copy_propagation.cpp
- at am__fastdepCXX_TRUE@	$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS)  
$(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES)  
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT  
Copy_propagation.lo -MD -MP -MF $(DEPDIR)/Copy_propagation.Tpo -c -o  
Copy_propagation.lo `test -f 'src/optimize/Copy_propagation.cpp' ||  
echo '$(srcdir)/'`src/optimize/Copy_propagation.cpp
- at am__fastdepCXX_TRUE@	mv -f $(DEPDIR)/Copy_propagation.Tpo  
$(DEPDIR)/Copy_propagation.Plo
- at AMDEP_TRUE@@am__fastdepCXX_FALSE@	 
source='src/optimize/Copy_propagation.cpp' object='Copy_propagation.lo'  
libtool=yes @AMDEPBACKSLASH@
- at AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE)  
$(depcomp) @AMDEPBACKSLASH@
- at am__fastdepCXX_FALSE@	$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS)  
$(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES)  
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o  
Copy_propagation.lo `test -f 'src/optimize/Copy_propagation.cpp' ||  
echo '$(srcdir)/'`src/optimize/Copy_propagation.cpp
-
  Dead_code_elimination.lo: src/optimize/Dead_code_elimination.cpp
  @am__fastdepCXX_TRUE@	$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS)  
$(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES)  
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT  
Dead_code_elimination.lo -MD -MP -MF $(DEPDIR)/Dead_code_elimination.Tpo -c  
-o Dead_code_elimination.lo `test  
-f 'src/optimize/Dead_code_elimination.cpp' ||  
echo '$(srcdir)/'`src/optimize/Dead_code_elimination.cpp
  @am__fastdepCXX_TRUE@	mv -f $(DEPDIR)/Dead_code_elimination.Tpo  
$(DEPDIR)/Dead_code_elimination.Plo
@@ -1793,13 +1773,6 @@
  @AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE)  
$(depcomp) @AMDEPBACKSLASH@
  @am__fastdepCXX_FALSE@	$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS)  
$(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES)  
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o  
Edge.lo `test -f 'src/optimize/Edge.cpp' ||  
echo '$(srcdir)/'`src/optimize/Edge.cpp

-Fix_point.lo: src/optimize/Fix_point.cpp
- at am__fastdepCXX_TRUE@	$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS)  
$(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES)  
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT  
Fix_point.lo -MD -MP -MF $(DEPDIR)/Fix_point.Tpo -c -o Fix_point.lo `test  
-f 'src/optimize/Fix_point.cpp' ||  
echo '$(srcdir)/'`src/optimize/Fix_point.cpp
- at am__fastdepCXX_TRUE@	mv -f $(DEPDIR)/Fix_point.Tpo $(DEPDIR)/Fix_point.Plo
- at AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='src/optimize/Fix_point.cpp'  
object='Fix_point.lo' libtool=yes @AMDEPBACKSLASH@
- at AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE)  
$(depcomp) @AMDEPBACKSLASH@
- at am__fastdepCXX_FALSE@	$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS)  
$(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES)  
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o  
Fix_point.lo `test -f 'src/optimize/Fix_point.cpp' ||  
echo '$(srcdir)/'`src/optimize/Fix_point.cpp
-
  Flow_visitor.lo: src/optimize/Flow_visitor.cpp
  @am__fastdepCXX_TRUE@	$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS)  
$(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES)  
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT  
Flow_visitor.lo -MD -MP -MF $(DEPDIR)/Flow_visitor.Tpo -c -o  
Flow_visitor.lo `test -f 'src/optimize/Flow_visitor.cpp' ||  
echo '$(srcdir)/'`src/optimize/Flow_visitor.cpp
  @am__fastdepCXX_TRUE@	mv -f $(DEPDIR)/Flow_visitor.Tpo  
$(DEPDIR)/Flow_visitor.Plo
@@ -1835,13 +1808,6 @@
  @AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE)  
$(depcomp) @AMDEPBACKSLASH@
  @am__fastdepCXX_FALSE@	$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS)  
$(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES)  
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o  
Phi.lo `test -f 'src/optimize/Phi.cpp' ||  
echo '$(srcdir)/'`src/optimize/Phi.cpp

-Prune_symbol_table.lo: src/optimize/Prune_symbol_table.cpp
- at am__fastdepCXX_TRUE@	$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS)  
$(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES)  
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT  
Prune_symbol_table.lo -MD -MP -MF $(DEPDIR)/Prune_symbol_table.Tpo -c -o  
Prune_symbol_table.lo `test -f 'src/optimize/Prune_symbol_table.cpp' ||  
echo '$(srcdir)/'`src/optimize/Prune_symbol_table.cpp
- at am__fastdepCXX_TRUE@	mv -f $(DEPDIR)/Prune_symbol_table.Tpo  
$(DEPDIR)/Prune_symbol_table.Plo
- at AMDEP_TRUE@@am__fastdepCXX_FALSE@	 
source='src/optimize/Prune_symbol_table.cpp' object='Prune_symbol_table.lo'  
libtool=yes @AMDEPBACKSLASH@
- at AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE)  
$(depcomp) @AMDEPBACKSLASH@
- at am__fastdepCXX_FALSE@	$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS)  
$(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES)  
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o  
Prune_symbol_table.lo `test -f 'src/optimize/Prune_symbol_table.cpp' ||  
echo '$(srcdir)/'`src/optimize/Prune_symbol_table.cpp
-
  SCCP.lo: src/optimize/SCCP.cpp
  @am__fastdepCXX_TRUE@	$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS)  
$(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES)  
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT  
SCCP.lo -MD -MP -MF $(DEPDIR)/SCCP.Tpo -c -o SCCP.lo `test  
-f 'src/optimize/SCCP.cpp' || echo '$(srcdir)/'`src/optimize/SCCP.cpp
  @am__fastdepCXX_TRUE@	mv -f $(DEPDIR)/SCCP.Tpo $(DEPDIR)/SCCP.Plo
@@ -1862,13 +1828,6 @@
  @AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='src/optimize/SSA.cpp'  
object='SSA.lo' libtool=yes @AMDEPBACKSLASH@
  @AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE)  
$(depcomp) @AMDEPBACKSLASH@
  @am__fastdepCXX_FALSE@	$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS)  
$(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES)  
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o  
SSA.lo `test -f 'src/optimize/SSA.cpp' ||  
echo '$(srcdir)/'`src/optimize/SSA.cpp
-
-Use_def_counter.lo: src/optimize/Use_def_counter.cpp
- at am__fastdepCXX_TRUE@	$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS)  
$(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES)  
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT  
Use_def_counter.lo -MD -MP -MF $(DEPDIR)/Use_def_counter.Tpo -c -o  
Use_def_counter.lo `test -f 'src/optimize/Use_def_counter.cpp' ||  
echo '$(srcdir)/'`src/optimize/Use_def_counter.cpp
- at am__fastdepCXX_TRUE@	mv -f $(DEPDIR)/Use_def_counter.Tpo  
$(DEPDIR)/Use_def_counter.Plo
- at AMDEP_TRUE@@am__fastdepCXX_FALSE@	 
source='src/optimize/Use_def_counter.cpp' object='Use_def_counter.lo'  
libtool=yes @AMDEPBACKSLASH@
- at AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE)  
$(depcomp) @AMDEPBACKSLASH@
- at am__fastdepCXX_FALSE@	$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS)  
$(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES)  
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o  
Use_def_counter.lo `test -f 'src/optimize/Use_def_counter.cpp' ||  
echo '$(srcdir)/'`src/optimize/Use_def_counter.cpp

  Visit_once.lo: src/optimize/Visit_once.cpp
  @am__fastdepCXX_TRUE@	$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS)  
$(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES)  
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT  
Visit_once.lo -MD -MP -MF $(DEPDIR)/Visit_once.Tpo -c -o Visit_once.lo  
`test -f 'src/optimize/Visit_once.cpp' ||  
echo '$(srcdir)/'`src/optimize/Visit_once.cpp

Modified: branches/dataflow/src/phc.cpp
==============================================================================
--- branches/dataflow/src/phc.cpp	(original)
+++ branches/dataflow/src/phc.cpp	Mon Oct  6 10:28:43 2008
@@ -32,14 +32,12 @@
  #include "hir_to_mir/Lower_dynamic_definitions.h"
  #include "hir_to_mir/Lower_method_invocations.h"
  #include "optimize/Address_taken.h"
-#include "optimize/Copy_propagation.h"
  #include "optimize/Dead_code_elimination.h"
  #include "optimize/Def_use.h"
  #include "optimize/If_simplification.h"
  #include "optimize/Into_SSA.h"
  #include "optimize/Live_variable_analysis.h"
  #include "optimize/Out_of_SSA.h"
-#include "optimize/Prune_symbol_table.h"
  #include "optimize/SCCP.h"
  #include "parsing/parse.h"
  #include "parsing/XML_parser.h"
@@ -156,8 +154,6 @@


  	pm->add_hir_pass (new Fake_pass (s("hir"), s("High-level Internal  
Representation - the smallest subset of PHP which can represent the entire  
language")));
-	// TODO move to optimizations
-	pm->add_hir_transform (new Copy_propagation (), s("prc"), s("Propagate  
copies - Remove some copies introduced as a result of lowering"));
  	pm->add_hir_transform (new Lower_dynamic_definitions (), s("ldd"),  
s("Lower Dynamic Defintions - Lower dynamic class, interface and method  
definitions using aliases"));
  	pm->add_hir_transform (new Lower_method_invocations (), s("lmi"),  
s("Lower Method Invocations - Lower parameters using run-time reference  
checks"));
  	pm->add_hir_transform (new Lower_control_flow (), s("lcf"), s("Lower  
Control Flow - Use gotos in place of loops, ifs, breaks and continues"));
@@ -170,9 +166,6 @@
  //	pm->add_mir_pass (new Process_includes (true, new String ("mir"),  
pm, "incl2"));
  	pm->add_mir_transform (new Lift_functions_and_classes (), s("lfc"),  
s("Move statements from global scope into __MAIN__ method"));
  	pm->add_mir_visitor (new Clarify (), s("clar"), s("Clarify - Make  
implicit defintions explicit"));
-
-	// TODO move to optimizations
-	pm->add_mir_visitor (new Prune_symbol_table (), s("pst"), s("Prune Symbol  
Table - Note whether a symbol table is required in generated code"));

  	pm->add_mir_transform (new Into_SSA (), s("inssa"), s("Convert non-SSA  
constructs into SSA constructs"));



More information about the phc-internals mailing list