This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[tree-ssa] Details debugging dump info for DSE


Just adds some info to the dump file when we actually remove a store.

	* tree-ssa.dse.c (dse_optimize_stmt): Dump info when we delete
	stores.

Index: tree-ssa-dse.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssa-dse.c,v
retrieving revision 1.1.2.2
diff -c -p -r1.1.2.2 tree-ssa-dse.c
*** tree-ssa-dse.c	16 Feb 2004 22:15:51 -0000	1.1.2.2
--- tree-ssa-dse.c	16 Feb 2004 22:35:13 -0000
*************** dse_optimize_stmt (struct dom_walk_data 
*** 302,307 ****
--- 302,314 ----
  	  else
  	    fix_stmt_vdefs (use, stmt);
  
+ 	  if (tree_dump_file && (tree_dump_flags & TDF_DETAILS))
+             {
+               fprintf (tree_dump_file, "  Deleted dead store '");
+               print_generic_expr (tree_dump_file, bsi_stmt (bsi), 0);
+               fprintf (tree_dump_file, "'\n");
+             }
+ 
  	  /* Any immediate uses which reference STMT need to instead
  	     reference USE.  This allows us to cascade dead stores.  */
  	  redirect_immediate_uses (stmt, use);
 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]