[GHC] #14437: Optimise remainders by powers of two