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]

Re: Patch to support mark_constant_function marking pure functions


On Mon, Aug 20, 2001 at 03:55:26PM -0400, John Wehle wrote:
> 	* alias.c: (nonlocal_mentioned_p): Don't
> 	bother checking non-constant calls.
> 	(nonlocal_referenced_p): New function.
> 	(nonlocal_set_p): Likewise.
> 	(mark_constant_function): Recognize pure functions.
> 	* rtl.h (global_reg_mentioned_p): New prototype.
> 	* rtlanal.c (global_reg_mentioned_p): New function.

I'd rather these routines be rewritten to use note_stores
and/or for_each_rtx, but the concept is sound.


r~


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