This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/32949] suboptimal address generation for int indices on 64-bit targets
- From: "amonakov at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Aug 2007 10:13:04 -0000
- Subject: [Bug tree-optimization/32949] suboptimal address generation for int indices on 64-bit targets
- References: <bug-32949-12467@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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