Re: [PATCH] Improving uniform_vector_p() function.

2013-10-02 Thread Richard Biener
On Tue, Oct 1, 2013 at 7:31 PM, Cong Hou wrote: > The current uniform_vector_p() function only returns non-NULL when the > vector is directly a uniform vector. For example, for the following > gimple code: > > vect_cst_.15_91 = {_9, _9, _9, _9, _9, _9, _9, _9}; > > > The current implementation can

Re: [PATCH] Improving uniform_vector_p() function.

2013-10-01 Thread Xinliang David Li
On Tue, Oct 1, 2013 at 2:37 PM, Xinliang David Li wrote: > On Tue, Oct 1, 2013 at 10:31 AM, Cong Hou wrote: >> The current uniform_vector_p() function only returns non-NULL when the >> vector is directly a uniform vector. For example, for the following >> gimple code: >> >> vect_cst_.15_91 = {_9,

Re: [PATCH] Improving uniform_vector_p() function.

2013-10-01 Thread Cong Hou
Actually I will introduce optimizations in the next patch. Currently the function uniform_vector_p () is rarely used in GCC, but there are certainly some optimization opportunities with the help of this function. For example, when we widen a vector with 8 identical element of short type to two vec

Re: [PATCH] Improving uniform_vector_p() function.

2013-10-01 Thread Xinliang David Li
On Tue, Oct 1, 2013 at 10:31 AM, Cong Hou wrote: > The current uniform_vector_p() function only returns non-NULL when the > vector is directly a uniform vector. For example, for the following > gimple code: > > vect_cst_.15_91 = {_9, _9, _9, _9, _9, _9, _9, _9}; > > > The current implementation ca

[PATCH] Improving uniform_vector_p() function.

2013-10-01 Thread Cong Hou
The current uniform_vector_p() function only returns non-NULL when the vector is directly a uniform vector. For example, for the following gimple code: vect_cst_.15_91 = {_9, _9, _9, _9, _9, _9, _9, _9}; The current implementation can only detect that {_9, _9, _9, _9, _9, _9, _9, _9} is a unifor