Re: [PATCH] middle-end/113396 - int128 array index and value-ranges

2024-03-20 Thread Richard Biener
On Tue, 19 Mar 2024, Jakub Jelinek wrote: > On Tue, Mar 19, 2024 at 03:47:37PM +0100, Richard Biener wrote: > > The following fixes bogus truncation of a value-range for an int128 > > array index when computing the maximum extent for a variable array > > reference. Instead of possibly slowing

Re: [PATCH] middle-end/113396 - int128 array index and value-ranges

2024-03-19 Thread Jakub Jelinek
On Tue, Mar 19, 2024 at 03:47:37PM +0100, Richard Biener wrote: > The following fixes bogus truncation of a value-range for an int128 > array index when computing the maximum extent for a variable array > reference. Instead of possibly slowing things down by using > widest_int the following makes

[PATCH] middle-end/113396 - int128 array index and value-ranges

2024-03-19 Thread Richard Biener
The following fixes bogus truncation of a value-range for an int128 array index when computing the maximum extent for a variable array reference. Instead of possibly slowing things down by using widest_int the following makes sure the range bounds fit within the constraints offset_int were