Re: How to reinterpret data in GIMPLE.

2007-12-03 Thread Andrew Pinski
On 12/3/07, Sjodin, Jan <[EMAIL PROTECTED]> wrote: > I would like to reinterpret (not convert/cast) a 32-bit integer to a > 32-bit float in GIMPLE. Is using a NOP_EXPR with the wanted type the > correct way of doing this? You want to use the tree code called VIEW_CONVERT_EXPR. Thanks, Andrew Pins

How to reinterpret data in GIMPLE.

2007-12-03 Thread Sjodin, Jan
I would like to reinterpret (not convert/cast) a 32-bit integer to a 32-bit float in GIMPLE. Is using a NOP_EXPR with the wanted type the correct way of doing this? The reinterpretation of a value is needed to optimize reads and writes to unions. I modified the value numbering pass which worked f