Re: [PATCH GCC]Support BIT_AND_EXPR in scalar evolution

2016-04-20 Thread Richard Biener
On Wed, Apr 20, 2016 at 12:22 PM, Bin.Cheng wrote: > On Wed, Apr 20, 2016 at 9:55 AM, Richard Biener > wrote: >> On Tue, Apr 19, 2016 at 7:00 PM, Bin Cheng wrote: >>> Hi, >>> Type conversion from integer to smaller unsigned type could be transformed >>> into BIT_AND_EXPR in compilation. For ex

Re: [PATCH GCC]Support BIT_AND_EXPR in scalar evolution

2016-04-20 Thread Bin.Cheng
On Wed, Apr 20, 2016 at 9:55 AM, Richard Biener wrote: > On Tue, Apr 19, 2016 at 7:00 PM, Bin Cheng wrote: >> Hi, >> Type conversion from integer to smaller unsigned type could be transformed >> into BIT_AND_EXPR in compilation. For example, >> int i; >> for (i = 0; i < n; i++) >> { >>

Re: [PATCH GCC]Support BIT_AND_EXPR in scalar evolution

2016-04-20 Thread Richard Biener
On Tue, Apr 19, 2016 at 7:00 PM, Bin Cheng wrote: > Hi, > Type conversion from integer to smaller unsigned type could be transformed > into BIT_AND_EXPR in compilation. For example, > int i; > for (i = 0; i < n; i++) > { > unsigned char uc = (unsigned char) i; // transformed into

[PATCH GCC]Support BIT_AND_EXPR in scalar evolution

2016-04-19 Thread Bin Cheng
Hi, Type conversion from integer to smaller unsigned type could be transformed into BIT_AND_EXPR in compilation. For example, int i; for (i = 0; i < n; i++) { unsigned char uc = (unsigned char) i; // transformed into X = i && 255, in which both X and i are of int type. b[uc]