rengolin added a comment. This does look like a heavy hammer for a small fix. From the optimisation guides, CSEL and MOV have the same latency/bandwidth and the condition is probably pipelined in anyway. https://reviews.llvm.org/D46278