InstCombine: Fold ldexp(ldexp(x, a), b) -> ldexp(x, a + b)
The problem here is overflow or underflow which would have occurred in the inner operation, which the exponent offsetting avoids. We can do this if we know the two exponents are in the same direction, or reassoc flags allow unsafe reassociates.
Loading
Please sign in to comment