Re: [PATCH] [ifcombine] adjust for narrowing converts before shifts [PR118206]

2025-01-09 Thread Richard Biener
On Fri, 10 Jan 2025, Alexandre Oliva wrote: > > A narrowing conversion and a shift both drop bits from the loaded > value, but we need to take into account which one comes first to get > the right number of bits and mask. > > Fold when applying masks to parts, comparing the parts, and combining

[PATCH] [ifcombine] adjust for narrowing converts before shifts [PR118206]

2025-01-09 Thread Alexandre Oliva
A narrowing conversion and a shift both drop bits from the loaded value, but we need to take into account which one comes first to get the right number of bits and mask. Fold when applying masks to parts, comparing the parts, and combining the results, in the odd chance either mask happens to be