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] dom dump tweak


        * tree-ssa-dom.c (optimize_stmt): Dump new statement if
        folding succeeded.

Index: tree-ssa-dom.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssa-dom.c,v
retrieving revision 1.1.2.110
diff -c -p -d -r1.1.2.110 tree-ssa-dom.c
*** tree-ssa-dom.c	14 Jan 2004 07:16:36 -0000	1.1.2.110
--- tree-ssa-dom.c	15 Jan 2004 09:20:56 -0000
*************** optimize_stmt (struct dom_walk_data *wal
*** 2223,2229 ****
      {
        fprintf (tree_dump_file, "Optimizing statement ");
        print_generic_stmt (tree_dump_file, stmt, TDF_SLIM);
-       fprintf (tree_dump_file, "\n");
      }
  
    /* Const/copy propagate into USES, VUSES and the RHS of VDEFs.  */
--- 2223,2228 ----
*************** optimize_stmt (struct dom_walk_data *wal
*** 2239,2244 ****
--- 2238,2249 ----
  	{
  	  stmt = bsi_stmt (si);
  	  ann = stmt_ann (stmt);
+ 
+ 	  if (tree_dump_file && (tree_dump_flags & TDF_DETAILS))
+ 	    {
+ 	      fprintf (tree_dump_file, "  Folded to: ");
+ 	      print_generic_stmt (tree_dump_file, stmt, TDF_SLIM);
+ 	    }
  	}
  
        /* Constant/copy propagation above may change the set of 


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