[Bug tree-optimization/99253] [10 Regression] tree-vect-loop wrong code

2021-03-16 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99253

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
  Known to fail|10.2.1  |10.2.0
  Known to work||10.2.1

--- Comment #8 from Richard Biener  ---
Fixed.

[Bug tree-optimization/99253] [10 Regression] tree-vect-loop wrong code

2021-03-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99253

--- Comment #7 from CVS Commits  ---
The releases/gcc-10 branch has been updated by Richard Biener
:

https://gcc.gnu.org/g:65767abfdc07547b5435083a5af6ab085e013a4d

commit r10-9447-g65767abfdc07547b5435083a5af6ab085e013a4d
Author: Richard Biener 
Date:   Thu Feb 25 09:36:33 2021 +0100

tree-optimization/99253 - fix reduction path check

This fixes an ordering problem with verifying that no intermediate
computations in a reduction path are used outside of the chain.  The
check was disabled for value-preserving conversions at the tail
but whether a stmt was a conversion or not was only computed after
the first use.  The following fixes this by re-ordering things
accordingly.

2021-02-25  Richard Biener  

PR tree-optimization/99253
* tree-vect-loop.c (check_reduction_path): First compute
code, then verify out-of-loop uses.

* gcc.dg/vect/pr99253.c: New testcase.

(cherry picked from commit 1193d05465acd39b6e3c7095274d8351a1e2cd44)

[Bug tree-optimization/99253] [10 Regression] tree-vect-loop wrong code

2021-02-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99253

Richard Biener  changed:

   What|Removed |Added

 Status|RESOLVED|ASSIGNED
 Resolution|FIXED   |---

--- Comment #6 from Richard Biener  ---
Sill needs to be backported.

[Bug tree-optimization/99253] [10 Regression] tree-vect-loop wrong code

2021-02-25 Thread stefansf at linux dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99253

Stefan Schulze Frielinghaus  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Stefan Schulze Frielinghaus  
---
Can confirm, fixed on IBM Z.  Thanks!

[Bug tree-optimization/99253] [10 Regression] tree-vect-loop wrong code

2021-02-25 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99253

Richard Biener  changed:

   What|Removed |Added

Summary|[10/11 Regression]  |[10 Regression]
   |tree-vect-loop wrong code   |tree-vect-loop wrong code
   Priority|P3  |P2
  Known to work||11.0

--- Comment #4 from Richard Biener  ---
Fixed on trunk sofar.