[Bug tree-optimization/50635] ICE on valid: segfault in vectorize_loops

2011-10-10 Thread irar at il dot ibm.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50635

Ira Rosen  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #5 from Ira Rosen  2011-10-10 13:02:10 UTC 
---
Fixed.


[Bug tree-optimization/50635] ICE on valid: segfault in vectorize_loops

2011-10-09 Thread irar at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50635

--- Comment #4 from irar at gcc dot gnu.org 2011-10-09 15:09:04 UTC ---
Author: irar
Date: Sun Oct  9 15:09:00 2011
New Revision: 179724

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179724
Log:

PR tree-optimization/50635
* tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
DEF_STMT to the list of statements to be replaced by the
pattern statements.
(vect_handle_widen_mult_by_const): Don't check TYPE_OUT.


Added:
trunk/gcc/testsuite/gcc.dg/vect/pr50635.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vect-patterns.c


[Bug tree-optimization/50635] ICE on valid: segfault in vectorize_loops

2011-10-06 Thread irar at il dot ibm.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50635

Ira Rosen  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2011-10-06
 CC||irar at il dot ibm.com
  Component|target  |tree-optimization
 AssignedTo|unassigned at gcc dot   |irar at gcc dot gnu.org
   |gnu.org |
 Ever Confirmed|0   |1

--- Comment #3 from Ira Rosen  2011-10-06 19:14:58 UTC 
---
I'll test this fix next week.

Index: tree-vect-patterns.c
===
--- tree-vect-patterns.c(revision 179447)
+++ tree-vect-patterns.c(working copy)
@@ -385,6 +385,7 @@ vect_handle_widen_mult_by_const (gimple stmt, tree
   || TREE_TYPE (gimple_assign_lhs (new_stmt)) != new_type)
 return false;

+  VEC_safe_push (gimple, heap, *stmts, def_stmt);
   *oprnd = gimple_assign_lhs (new_stmt);
 }
   else