Re: [PATCH] fold-const: Fold larger VIEW_CONVERT_EXPRs [PR113462]

2024-01-22 Thread Richard Biener
On Mon, 22 Jan 2024, Jakub Jelinek wrote: > Hi! > > On Mon, Jan 22, 2024 at 11:56:11AM +0100, Richard Biener wrote: > > > I guess the || total_bytes * BITS_PER_UNIT > HOST_BITS_PER_DOUBLE_INT > > > conditions make no sense, all we care is whether it fits in the buffer > > > or not. > > > But then

[PATCH] fold-const: Fold larger VIEW_CONVERT_EXPRs [PR113462]

2024-01-22 Thread Jakub Jelinek
Hi! On Mon, Jan 22, 2024 at 11:56:11AM +0100, Richard Biener wrote: > > I guess the || total_bytes * BITS_PER_UNIT > HOST_BITS_PER_DOUBLE_INT > > conditions make no sense, all we care is whether it fits in the buffer > > or not. > > But then there is > > fold_view_convert_expr > > (and other spots