[RFC, for 4.2] marking no-throw at the tree level

Andrew Pinski pinskia@physics.uc.edu
Wed Sep 14 17:17:00 GMT 2005


This brings the no throw marking to the IPA/tree level.  We cannot 
remove
the RTL level marking as it does more than what is here like setting
all_throwers_are_sibcalls which we don't know until after all 
optimizations
have happened.

What do people think about this patch?  The pass is run before inlining
and we cleanup the CFG which saves us some creating BBs when running
the inliner.

This has been bootstrapped and tested on x86_64-pc-linux-gnu with no 
regressions.


Thanks,
Andrew Pinski

ChangeLog:
	* Makefile.in (OBJS-common): Add ipa-nothrow.o
	* ipa-nothrow.c: New file.
	* passes.c (init_optimization_passes): Add pass_ipa_nothrow
	right before pass_ipa_inline.
	* timevar.def (TV_IPA_NOTHROW): New time var.
	* tree-pass.h (pass_ipa_nothrow): New pass.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ipanothrow.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050914/6a124243/attachment.txt>


More information about the Gcc-patches mailing list