[InstCombine] Don't divide by zero when evaluating a potential transform