Re: [patch] Reduce over-promotion of vector operations

2012-06-16 Thread H.J. Lu
On Thu, Aug 4, 2011 at 9:47 AM, Ira Rosen wrote: > On 19 July 2011 09:44, Ira Rosen wrote: >> Hi, >> >> This patch tries to reduce over-promotion of vector operations that >> could be done with narrower elements, e.g., for >> >> char a; >> int b, c; >> short d; >> >> b = (int) a; >> c = b << 2; >

Re: [patch] Reduce over-promotion of vector operations

2011-08-04 Thread Ira Rosen
On 19 July 2011 09:44, Ira Rosen wrote: > Hi, > > This patch tries to reduce over-promotion of vector operations that > could be done with narrower elements, e.g., for > > char a; > int b, c; > short d; > > b = (int) a; > c = b << 2; > d = (short) c; > > we currently produce six vec_unpack_lo/hi_e

Re: [patch] Reduce over-promotion of vector operations

2011-07-20 Thread Ira Rosen
On 20 July 2011 17:28, Richard Guenther wrote: > On Tue, Jul 19, 2011 at 10:57 AM, Richard Guenther > wrote: >> On Tue, Jul 19, 2011 at 8:44 AM, Ira Rosen wrote: >>> Hi, >>> >>> This patch tries to reduce over-promotion of vector operations that >>> could be done with narrower elements, e.g., fo

Re: [patch] Reduce over-promotion of vector operations

2011-07-20 Thread Richard Guenther
On Tue, Jul 19, 2011 at 10:57 AM, Richard Guenther wrote: > On Tue, Jul 19, 2011 at 8:44 AM, Ira Rosen wrote: >> Hi, >> >> This patch tries to reduce over-promotion of vector operations that >> could be done with narrower elements, e.g., for >> >> char a; >> int b, c; >> short d; >> >> b = (int)

Re: [patch] Reduce over-promotion of vector operations

2011-07-19 Thread Richard Guenther
On Tue, Jul 19, 2011 at 8:44 AM, Ira Rosen wrote: > Hi, > > This patch tries to reduce over-promotion of vector operations that > could be done with narrower elements, e.g., for > > char a; > int b, c; > short d; > > b = (int) a; > c = b << 2; > d = (short) c; > > we currently produce six vec_unpa

[patch] Reduce over-promotion of vector operations

2011-07-18 Thread Ira Rosen
Hi, This patch tries to reduce over-promotion of vector operations that could be done with narrower elements, e.g., for char a; int b, c; short d; b = (int) a; c = b << 2; d = (short) c; we currently produce six vec_unpack_lo/hi_expr statements for char->int conversion and then two vec_pack_tru