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]

Re: [PATCH] Improve lim for pulling loads from global variable outof loops


On Sat, 2004-11-13 at 04:43, Zdenek Dvorak wrote:

> 	PR tree-optimization/18431
> 	* tree-flow.h (stmt_reads_memory_p): Declare.
> 	* tree-ssa-loop-im.c (stmt_cost): Use stmt_reads_memory_p.
> 	* tree-ssa.c (stmt_reads_memory_p): New function.
> 
s/stmt_reads_memory_p/stmt_references_memory_p/

Perhaps we should also test for 'ann->has_volatiles_ops' in this new
predicate.

OK with those changes.


Diego.


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