Re: [PATCH] forwprop: Use tree_fits_shwi_p in check_ctz_array

2025-01-03 Thread Richard Biener
> Am 03.01.2025 um 09:44 schrieb Jakub Jelinek : > > Hi! > > When touching the function yesterday, I was surprised to see just > TREE_CODE (something) != INTEGER_CST checks followed by tree_to_shwi. > That would ICE if the INTEGER_CST doesn't fit. > > I have actually not been able to reprodu

[PATCH] forwprop: Use tree_fits_shwi_p in check_ctz_array

2025-01-03 Thread Jakub Jelinek
Hi! When touching the function yesterday, I was surprised to see just TREE_CODE (something) != INTEGER_CST checks followed by tree_to_shwi. That would ICE if the INTEGER_CST doesn't fit. I have actually not been able to reproduce an ICE for the elt case as the caller gives up if the precision of