This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] More CCP fixes [patch]


On Wed, 2002-08-14 at 02:50, Mark Mitchell wrote:

> For example, consider:
> 
>   struct S {
>     int i : 3;
>   };
> 
>   S s;
>   int j;
> 
>   s.i = j;
>   j = s.i;
> 
> If the last two lines were represented as:
> 
>   s.i = j & 0x7;
>   j = sign_extend(s.i);
> 
> would that work?
> 
This is the change I have in mind for the simplification process.  To
explicitly represent type casts in SIMPLE.

If SIMPLE is supposed to be language-independent, allowing C-like type
casts does not look right (original SIMPLE did allow them).


Diego.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]