This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/29925] Wrong code with -ftree-vectorize
- From: "jean-marc dot valin at usherbrooke dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Nov 2006 14:29:32 -0000
- Subject: [Bug tree-optimization/29925] Wrong code with -ftree-vectorize
- References: <bug-29925-8625@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from jean-marc dot valin at usherbrooke dot ca 2006-11-21 14:29 -------
Some additional info. valgrind reports that the read includes 4 bytes (out of
8) outside of the array, but in fact given the inputs, it shouldn't even read
that close to the array bound in the first place. So the address computation is
completely wrong. Also, strange is that simply replacing maxj by its value (3)
in:
tmp += exc[i-pitch+k+maxj-6];
makes the problem disappear.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29925