[llvm] [AMDGPU] Reland "Remove redundant s_cmp_lg_* sX, 0" (PR #164201)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 20 03:03:25 PDT 2025


================
@@ -729,6 +729,7 @@ class SIInstrInfo final : public AMDGPUGenInstrInfo {
     case AMDGPU::S_MAX_I32:
     case AMDGPU::S_MAX_U32:
     case AMDGPU::S_ADDK_I32:
+    case AMDGPU::SI_PC_ADD_REL_OFFSET:
----------------
arsenm wrote:

Also it would be better to invert the logic, The default should not be to assume this is foldable 

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


More information about the llvm-commits mailing list