--- Comment #6 from dominiq at lps dot ens dot fr 2010-08-10 12:04 ---
This is a [4.5/4.6 Regression]: the test in comment #4 compiles with gcc
version 4.4.4 (GCC).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45241
--- Comment #5 from irar at il dot ibm dot com 2010-08-10 10:23 ---
(In reply to comment #1)
> This patch should be a valid fix, because the recognition of the dot_prod
> pattern is known to be fail at this point if the stmt is outside the loop.
> (I am not sure whether we should not see
--- Comment #4 from irar at il dot ibm dot com 2010-08-10 09:06 ---
I am testing the same patch as in comment #1.
Testcase that shows the problem:
int
foo(short x)
{
short i, y;
int sum;
for (i = 0; i < x; i++)
y = x * i;
for (i = x; i > 0; i--)
sum += y;
return su
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-08-10 08:58 ---
*** Bug 45239 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45241
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-08-10 08:58 ---
Can you attach a testcase please?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45241
--- Comment #1 from changpeng dot fang at amd dot com 2010-08-09 17:52
---
This patch should be a valid fix, because the recognition of the dot_prod
pattern is known to be fail at this point if the stmt is outside the loop.
(I am not sure whether we should not see this case in the vecto