add X86-specific DAG optimization to simplify boolean test