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]

[PATCH][pretty-ipa] Add early FRE pass


As base for inliner heuristic tunings this adds the long awaited
early FRE pass.  There are basically two placement choices that
make sense, before and after early SRA.  We get slightly less odd
code for tramp3d when placing it after so this is what the patch
does (this variant was also tested more extensively).  IMHO early
SRA should go away and update-address-taken should be made a little
more aggressive.

Bootstrapped on x86_64-unknown-linux-gnu, testing in progress, will
apply to pretty-ipa if that succeeds.

I'll use gcc/ChangeLog.pretty-ipa.

Richard.

2011-02-22  Richard Guenther  <rguenther@suse.de>

	* passes.c (init_optimization_passes): Add FRE pass after
	early SRA.

Index: gcc/passes.c
===================================================================
*** gcc/passes.c	(revision 170394)
--- gcc/passes.c	(working copy)
*************** init_optimization_passes (void)
*** 762,767 ****
--- 762,768 ----
  	     locals into SSA form if possible.  */
  	  NEXT_PASS (pass_build_ealias);
  	  NEXT_PASS (pass_sra_early);
+ 	  NEXT_PASS (pass_fre);
  	  NEXT_PASS (pass_copy_prop);
  	  NEXT_PASS (pass_merge_phi);
  	  NEXT_PASS (pass_cd_dce);


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