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/tree-profiling] Obvious fix to profile update


Hi,
bootstrapped/regtested i686-pc-gnu-linux, tree-profiling-branch.
I will commit it to both branches once testing passes as obvious.

Honza

2004-02-19  Jan Hubicka  <jh@suse.cz>
	* tree-cfg.c (cleanup_control_expr_graph): Update profile.
Index: tree-cfg.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-cfg.c,v
retrieving revision 1.1.4.267.2.1
diff -c -3 -p -r1.1.4.267.2.1 tree-cfg.c
*** tree-cfg.c	16 Feb 2004 17:23:04 -0000	1.1.4.267.2.1
--- tree-cfg.c	19 Feb 2004 09:27:18 -0000
*************** cleanup_control_expr_graph (basic_block 
*** 1673,1678 ****
--- 1672,1679 ----
  	  next = e->succ_next;
  	  if (e != taken_edge)
  	    {
+ 	      taken_edge->probability += e->probability;
+ 	      taken_edge->count += e->count;
  	      ssa_remove_edge (e);
  	      retval = true;
  	    }


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