Re: fold_build1 (NOP_EXPR, ...) vs. fold_build1 (CONVERT_EXPR, ...)

2005-12-01 Thread Roger Sayle
On Thu, 1 Dec 2005, Richard Guenther wrote: > It looks like it is safe to exchange both of them (the first one for sure) > to fold_convert (...) due to the fact that fold_unary handles NOP_EXPR > the same way than CONVERT_EXPR apart from cases that look like oversights, > ... > In fact, I remember

fold_build1 (NOP_EXPR, ...) vs. fold_build1 (CONVERT_EXPR, ...)

2005-12-01 Thread Richard Guenther
It looks like it is safe to exchange both of them (the first one for sure) to fold_convert (...) due to the fact that fold_unary handles NOP_EXPR the same way than CONVERT_EXPR apart from cases that look like oversights, f.i. /* Convert (T1)((T2)X op Y) into (T1)X op Y, for pointer types T1