Factor the (x & 2^n) ? 2^m : 0 instcombine into its own method and generalize it