about the divergent branching

Does anyone know if “ ? : <exp2” causes divergent branching which affect the performance?

Thanks!

Assuming that exp1 and exp2 are simple expressions, the compiler will replace the branch with predicated instructions and there will be no divergence. This behavior is documented in the programming guide.