https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109393

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to manolis.tsamis from comment #4)
> Given the original transform it should be valid to propagate the constant
> addition through the cast?

Yes.  Note doing so loses information, we know i + 1 doesn't overflow
(undefined behavior).  Widening preserves this knowledge I think, but if
just an unsigned conversion would be propagated it would be lost.

Reply via email to