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] Some ivopts improvements


On Mon, May 16, 2005 at 09:24:29PM +0200, Zdenek Dvorak wrote:
> 2) number_of_iterations_cond uses tree_expr_nonnegative_p to detect
>    whether we are not dealing with paradoxical loops.  This test fails 
>    when the control variable is unsigned, since then
>    tree_expr_nonnegative_p is always true.

Got a test case for this one?

> 	* tree-ssa-loop-ivopts.c (find_bivs, find_givs_in_stmt_scev): Apply
> 	expand_simple_operations to bases of the ivs.
> 	(tree_int_cst_sign_bit): Export.
> 	* tree-flow.h (expand_simple_operations): Declare.
> 	* tree-ssa-loop-niter.c (number_of_iterations_cond): Use
> 	tree_int_cst_sign_bit.
> 	(expand_simple_operations): Export.
> 	* tree.h (tree_int_cst_sign_bit): Declare.

Ok.


r~


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