This is the mail archive of the gcc-bugs@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]

[Bug tree-optimization/32949] suboptimal address generation for int indices on 64-bit targets



------- Comment #2 from amonakov at gmail dot com  2007-08-22 10:13 -------
> *************** scev_probably_wraps_p (tree base, tree s
> *** 2969,2977 ****
>        2032, 2040, 0, 8, ..., but the code is still legal.  */
> 
>     if (chrec_contains_undetermined (base)
> !       || chrec_contains_undetermined (step)
> !       || TREE_CODE (step) != INTEGER_CST)
> !     return true;
> 
>     if (integer_zerop (step))
>       return false;
> --- 2969,2975 ----
>        2032, 2040, 0, 8, ..., but the code is still legal.  */
> 
>     if (chrec_contains_undetermined (base)
> !       || chrec_contains_undetermined (step))
> 
>     if (integer_zerop (step))
>       return false;

Zdenek, isn't 'return true' missing here?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32949


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