* [Bug fortran/52701] [4.8 Regression] 416.gamess in SPEC CPU 2006 failed to build
2012-03-24 15:07 [Bug fortran/52701] New: [4.8 Regression] 416.gamess in SPEC CPU 2006 failed to build hjl.tools at gmail dot com
@ 2012-03-24 17:57 ` tkoenig at gcc dot gnu.org
2012-03-25 13:26 ` [Bug middle-end/52701] " burnus at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: tkoenig at gcc dot gnu.org @ 2012-03-24 17:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52701
Thomas Koenig <tkoenig at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2012-03-24
CC| |tkoenig at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2012-03-24 17:56:33 UTC ---
I don't have access to the SPEC sources.
Do you have a reduced test case?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/52701] [4.8 Regression] 416.gamess in SPEC CPU 2006 failed to build
2012-03-24 15:07 [Bug fortran/52701] New: [4.8 Regression] 416.gamess in SPEC CPU 2006 failed to build hjl.tools at gmail dot com
2012-03-24 17:57 ` [Bug fortran/52701] " tkoenig at gcc dot gnu.org
@ 2012-03-25 13:26 ` burnus at gcc dot gnu.org
2012-03-26 11:30 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-03-25 13:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52701
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
CC| |burnus at gcc dot gnu.org
Component|fortran |middle-end
Target Milestone|--- |4.8.0
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-03-25 12:46:47 UTC ---
(In reply to comment #0)
> On Linux/x86-64, revision 185738 gave
> Revision 185629 is OK.
Don't think that the regression is caused or triggered by the Fortran front
end. The last real change was 185517 and 185728 removed only an unused
macro.
Thus, the bug should be caused - or at least triggered - by some ME change.
Hence, I have now assigned it to middle-end. (Besides, most gfortran developers
do not have access to SPEC CPU.)
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/52701] [4.8 Regression] 416.gamess in SPEC CPU 2006 failed to build
2012-03-24 15:07 [Bug fortran/52701] New: [4.8 Regression] 416.gamess in SPEC CPU 2006 failed to build hjl.tools at gmail dot com
2012-03-24 17:57 ` [Bug fortran/52701] " tkoenig at gcc dot gnu.org
2012-03-25 13:26 ` [Bug middle-end/52701] " burnus at gcc dot gnu.org
@ 2012-03-26 11:30 ` jakub at gcc dot gnu.org
2012-03-26 11:45 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-03-26 11:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52701
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-26 11:26:49 UTC ---
Reduced testcase:
function pr52701 (x, z, e, f, g, l)
integer a, b, c, d, e, f, g, i, j, l, pr52701
double precision x(e), z(e*e)
do i = l, f
do j = l, i
d = 0
do a = 1, g
c = a - g
do b = 1, g
d = d + 1
c = c + g
z(d) = z(d) / (x(i) + x(j) - x(f + a) - x(f + b))
end do
end do
end do
end do
pr52701 = c
end
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/52701] [4.8 Regression] 416.gamess in SPEC CPU 2006 failed to build
2012-03-24 15:07 [Bug fortran/52701] New: [4.8 Regression] 416.gamess in SPEC CPU 2006 failed to build hjl.tools at gmail dot com
` (2 preceding siblings ...)
2012-03-26 11:30 ` jakub at gcc dot gnu.org
@ 2012-03-26 11:45 ` rguenth at gcc dot gnu.org
2012-03-26 12:11 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-03-26 11:45 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52701
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |ASSIGNED
AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org
|gnu.org |
--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-26 11:29:21 UTC ---
Mine.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/52701] [4.8 Regression] 416.gamess in SPEC CPU 2006 failed to build
2012-03-24 15:07 [Bug fortran/52701] New: [4.8 Regression] 416.gamess in SPEC CPU 2006 failed to build hjl.tools at gmail dot com
` (3 preceding siblings ...)
2012-03-26 11:45 ` rguenth at gcc dot gnu.org
@ 2012-03-26 12:11 ` rguenth at gcc dot gnu.org
2012-03-26 14:17 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-03-26 12:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52701
--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-26 11:44:55 UTC ---
During analysis we have {c_50, +, pretmp.51_172}_4 as access function. This
is analyzed to be unknown:
9: Unknown def-use cycle pattern.
but we still vectorize this loop, as the induction (with unknown step,
thus not detected as such) is irrelevant, only the final value after
the loop (thus, a missed SCEV "const"-prop).
Which means we should simply always set STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
I have a patch.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/52701] [4.8 Regression] 416.gamess in SPEC CPU 2006 failed to build
2012-03-24 15:07 [Bug fortran/52701] New: [4.8 Regression] 416.gamess in SPEC CPU 2006 failed to build hjl.tools at gmail dot com
` (4 preceding siblings ...)
2012-03-26 12:11 ` rguenth at gcc dot gnu.org
@ 2012-03-26 14:17 ` rguenth at gcc dot gnu.org
2012-03-26 15:24 ` rguenth at gcc dot gnu.org
2012-04-03 11:56 ` rguenth at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-03-26 14:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52701
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #7 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-26 14:15:52 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/52701] [4.8 Regression] 416.gamess in SPEC CPU 2006 failed to build
2012-03-24 15:07 [Bug fortran/52701] New: [4.8 Regression] 416.gamess in SPEC CPU 2006 failed to build hjl.tools at gmail dot com
` (5 preceding siblings ...)
2012-03-26 14:17 ` rguenth at gcc dot gnu.org
@ 2012-03-26 15:24 ` rguenth at gcc dot gnu.org
2012-04-03 11:56 ` rguenth at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-03-26 15:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52701
--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-26 14:15:03 UTC ---
Author: rguenth
Date: Mon Mar 26 14:14:51 2012
New Revision: 185800
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185800
Log:
2012-03-26 Richard Guenther <rguenther@suse.de>
PR tree-optimization/52701
* tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
compute and set the evolution part of PHI nodes.
* gfortran.dg/pr52701.f90: New testcase.
Added:
trunk/gcc/testsuite/gfortran.dg/pr52701.f90
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vect-loop.c
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/52701] [4.8 Regression] 416.gamess in SPEC CPU 2006 failed to build
2012-03-24 15:07 [Bug fortran/52701] New: [4.8 Regression] 416.gamess in SPEC CPU 2006 failed to build hjl.tools at gmail dot com
` (6 preceding siblings ...)
2012-03-26 15:24 ` rguenth at gcc dot gnu.org
@ 2012-04-03 11:56 ` rguenth at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-04-03 11:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52701
--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-04-03 11:55:30 UTC ---
Author: rguenth
Date: Tue Apr 3 11:55:24 2012
New Revision: 186105
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186105
Log:
2012-04-03 Richard Guenther <rguenther@suse.de>
Backport from mainline
2012-03-06 Richard Guenther <rguenther@suse.de>
PR middle-end/52493
* tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
* gcc.dg/torture/pr52493.c: New testcase.
2012-03-23 Richard Guenther <rguenther@suse.de>
PR tree-optimization/52678
* tree-vectorizer.h (struct _stmt_vec_info): Add
loop_phi_evolution_part member.
(STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
* tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
* tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
Use the cached evolution part and the PHI nodes value from
the loop preheader edge instead of re-analyzing the evolution.
* gfortran.dg/pr52678.f: New testcase.
2012-03-26 Richard Guenther <rguenther@suse.de>
PR tree-optimization/52701
* tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
compute and set the evolution part of PHI nodes.
* gfortran.dg/pr52701.f90: New testcase.
2012-03-30 Richard Guenther <rguenther@suse.de>
PR tree-optimization/52754
* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
propagate arbitrary addresses into really plain dereferences.
* gcc.target/i386/pr52754.c: New testcase.
Added:
branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/torture/pr52493.c
branches/gcc-4_7-branch/gcc/testsuite/gcc.target/i386/pr52754.c
branches/gcc-4_7-branch/gcc/testsuite/gfortran.dg/pr52678.f
branches/gcc-4_7-branch/gcc/testsuite/gfortran.dg/pr52701.f90
Modified:
branches/gcc-4_7-branch/gcc/ChangeLog
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
branches/gcc-4_7-branch/gcc/tree-ssa-alias.c
branches/gcc-4_7-branch/gcc/tree-ssa-forwprop.c
branches/gcc-4_7-branch/gcc/tree-vect-loop-manip.c
branches/gcc-4_7-branch/gcc/tree-vect-loop.c
branches/gcc-4_7-branch/gcc/tree-vectorizer.h
^ permalink raw reply [flat|nested] 9+ messages in thread