[llvm] [AMDGPU] Remove redundant s_cmp_lg_* sX, 0 (PR #162352)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 15 08:28:52 PDT 2025


jayfoad wrote:

> I would guess that s_cmp_eq_* is frequently (perhaps almost always) followed by a single use by s_cbranch_* which can easily be reversed.

Right, or an s_cselect where you can easily swap the operands.


https://github.com/llvm/llvm-project/pull/162352


More information about the llvm-commits mailing list