[Bug tree-optimization/46009] ?: vectorized, very similar if is not

2011-08-25 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46009

H.J. Lu  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.6.0

--- Comment #5 from H.J. Lu  2011-08-25 15:37:02 
UTC ---
Fixed.


[Bug tree-optimization/46009] ?: vectorized, very similar if is not

2010-11-03 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46009

--- Comment #4 from Jakub Jelinek  2010-11-03 
15:18:55 UTC ---
Author: jakub
Date: Wed Nov  3 15:18:50 2010
New Revision: 166251

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166251
Log:
PR tree-optimization/46009
* tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
cond_if_else_store_replacement if bb1 and bb2 have the same
single successor.
(cond_store_replacement): Use gimple_assign_single_p, don't
check if rhs is SSA_NAME or invariant.  Call release_defs for
assign.
(cond_if_else_store_replacement): New function.

* gcc.dg/vect/pr46009.c: New function.

Added:
trunk/gcc/testsuite/gcc.dg/vect/pr46009.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-phiopt.c


[Bug tree-optimization/46009] ?: vectorized, very similar if is not

2010-11-03 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46009

Jakub Jelinek  changed:

   What|Removed |Added

  Attachment #22245|0   |1
is obsolete||

--- Comment #3 from Jakub Jelinek  2010-11-03 
12:01:18 UTC ---
Created attachment 22247
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22247
gcc46-pr46009.patch

Updated patch for richi's comments on IRC.


[Bug tree-optimization/46009] ?: vectorized, very similar if is not

2010-11-03 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46009

Jakub Jelinek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2010.11.03 11:11:40
 AssignedTo|unassigned at gcc dot   |jakub at gcc dot gnu.org
   |gnu.org |
 Ever Confirmed|0   |1

--- Comment #2 from Jakub Jelinek  2010-11-03 
11:11:40 UTC ---
Created attachment 22245
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22245
gcc46-pr46009.patch

Untested fix.

As discussed on IRC, this is something that can be handled either in store
sinking pass, or in cselim (which has some infrastructure for it), or both.

This patch implements it in cselim.


[Bug tree-optimization/46009] ?: vectorized, very similar if is not

2010-10-13 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46009

--- Comment #1 from Andrew Pinski  2010-10-13 
16:59:28 UTC ---
Related to PR 21998.