[InstCombine] `sext(trunc(x)) --> sext(x)` iff trunc is NSW (PR49543)
If we can tell that trunc only chops off sign bits, and not all of them, then we can simply sign-extend the trunc's source.
Loading
Please sign in to comment
If we can tell that trunc only chops off sign bits, and not all of them, then we can simply sign-extend the trunc's source.