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: [PATCH] Fold zero extensions into bit-wise ANDs (take 2)


On Wed, Apr 17, 2002 at 05:37:34PM -0400, Jakub Jelinek wrote:
> 	* fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
> 	for integer constant c (if x has unsigned type or sign bit is not
> 	set in c).  This folds the zero/sign extension into the bit-wise and
> 	operation.

Looks ok for mainline.


r~


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