philnik777 wrote: > Isn't this a pattern the compiler should detect and optimize? I don't really care. Even if the compiler optimized this it'd still be a readability improvement. https://github.com/llvm/llvm-project/pull/230430