Implement the "if (X == 6 || X == 4)" -> "if ((X|2) == 6)" optimization.