[Bug tree-optimization/81053] ICE on valid code at -O3 on x86_64-linux-gnu: in as_a, at is-a.h:192

2017-06-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81053

--- Comment #5 from Richard Biener  ---
Author: rguenth
Date: Mon Jun 12 10:42:57 2017
New Revision: 249113

URL: https://gcc.gnu.org/viewcvs?rev=249113=gcc=rev
Log:
2017-06-12  Richard Biener  

PR tree-optimization/81053
* tree-vect-loop.c (vect_is_simple_reduction): Handle PHI
with backedge value not defined in loop.  Simplify def stmt
compute.

* gcc.dg/torture/pr81053.c: New testcase.

Added:
trunk/gcc/testsuite/gcc.dg/torture/pr81053.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vect-loop.c

[Bug tree-optimization/81053] ICE on valid code at -O3 on x86_64-linux-gnu: in as_a, at is-a.h:192

2017-06-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81053

Richard Biener  changed:

   What|Removed |Added

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

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

[Bug tree-optimization/81053] ICE on valid code at -O3 on x86_64-linux-gnu: in as_a, at is-a.h:192

2017-06-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81053

Richard Biener  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2017-06-12
Version|unknown |8.0
 Blocks||66623
   Assignee|unassigned at gcc dot gnu.org  |rguenth at gcc dot 
gnu.org
 Ever confirmed|0   |1

--- Comment #4 from Richard Biener  ---
Mine.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66623
[Bug 66623] Unsafe FP math reduction used in strict math mode

[Bug tree-optimization/81053] ICE on valid code at -O3 on x86_64-linux-gnu: in as_a, at is-a.h:192

2017-06-11 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81053

--- Comment #3 from H.J. Lu  ---
(In reply to David Binderman from comment #2)
> More accurately, between 249048 and 249053. 
> 
> Richard, I can see you've produced three of the revisions
> in this band. Would you be able to offer any advice on
> a suitable fix ?

It is caused by r249053.

[Bug tree-optimization/81053] ICE on valid code at -O3 on x86_64-linux-gnu: in as_a, at is-a.h:192

2017-06-11 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81053

David Binderman  changed:

   What|Removed |Added

 CC||rguenther at suse dot de

--- Comment #2 from David Binderman  ---
More accurately, between 249048 and 249053. 

Richard, I can see you've produced three of the revisions
in this band. Would you be able to offer any advice on
a suitable fix ?

[Bug tree-optimization/81053] ICE on valid code at -O3 on x86_64-linux-gnu: in as_a, at is-a.h:192

2017-06-11 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81053

--- Comment #1 from David Binderman  ---
Problem seems to occur between gcc revisions 249048 and 249069.