[Bug tree-optimization/29925] Wrong code with -ftree-vectorize

jean-marc dot valin at usherbrooke dot ca gcc-bugzilla@gcc.gnu.org
Tue Nov 21 14:29:00 GMT 2006



------- 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



More information about the Gcc-bugs mailing list