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/29925] Wrong code with -ftree-vectorize



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


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