[tree-ssa] Details debugging dump info for DSE

law@redhat.com law@redhat.com
Mon Feb 16 23:11:00 GMT 2004


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);
 




More information about the Gcc-patches mailing list