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] Decrease # of update_stmt calls from alias analysis


Hello,

> > 	* tree-flow.h (struct stmt_ann_d): Add has_virtual_ops field.
> > 	* tree-ssa-structalias.c (find_func_aliases): Only mark
> > 	the statements that may have virtual operands for rescanning.
> > 	* tree-ssa-operands.c (build_ssa_operands, get_expr_operands,
> > 	get_asm_expr_operands, get_call_expr_operands): Set has_virtual_ops
> > 	field.
> > 
> No.  Not another state flag to keep up-to-date.  Particularly if it
> gives no benefit.

huh? No benefit??? I thought the reduction of number of update_stmt
calls is self-explanatory, but just to make it clear -- this patch
improves compile time measurably, for example by almost 1% on combine.i at
-O2.

> Use stmt_references_memory_p, if you must.

Given that the point of the patch is to avoid need to scan the
statement, this does not seem like a good solution to me.

Zdenek


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