1. An apparatus to compile a shader comprising: logic, at least a portion of which is implemented in hardware, the logic to: determine whether an output-merger (OM) state of a shader instruction is set to a src_alpha; and compile the shader instruction to include an optimized sub-sequence based on a determination that the OM state is set to src_alpha.