Re: [PATCH] [ifcombine] check for more zero-extension cases [PR118572]

2025-01-23 Thread Richard Biener
On Thu, Jan 23, 2025 at 8:43 AM Alexandre Oliva wrote: > > > When comparing a signed narrow variable with a wider constant that has > the bit corresponding to the variable's sign bit set, we would check > that the constant is a sign-extension from that sign bit, and conclude > that the compare fai

[PATCH] [ifcombine] check for more zero-extension cases [PR118572]

2025-01-22 Thread Alexandre Oliva
When comparing a signed narrow variable with a wider constant that has the bit corresponding to the variable's sign bit set, we would check that the constant is a sign-extension from that sign bit, and conclude that the compare fails if it isn't. When the signed variable is masked without gettin