jayfoad wrote: Some of this was previously implemented as part of https://reviews.llvm.org/D109159 "[amdgpu] Enable selection of `s_cselect_b64`." but later reverted. @hliao2 @alex-t @piotrAMD https://github.com/llvm/llvm-project/pull/70352