[llvm] [NFC] Cleanup in SOPInstructions.td (PR #210367)
Anshil Gandhi via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 17 09:26:39 PDT 2026
https://github.com/gandhi56 created https://github.com/llvm/llvm-project/pull/210367
- Eliminate code which was accidentally merged during a merge-conflict
(https://github.com/llvm/llvm-project/pull/203155/changes#r3560059941)
- Remove comments as they are specific to usubsat.
>From 0ba14208c0df394cbd5867778e386e8757555641 Mon Sep 17 00:00:00 2001
From: Anshil Gandhi <Anshil.Gandhi at amd.com>
Date: Fri, 17 Jul 2026 11:24:39 -0500
Subject: [PATCH] [NFC] Cleanup in SOPInstructions.td
- Eliminate code which was accidentally merged during a merge-conflict
(https://github.com/llvm/llvm-project/pull/203155/changes#r3560059941)
- Remove comments as they are specific to usubsat.
---
llvm/lib/Target/AMDGPU/SOPInstructions.td | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/llvm/lib/Target/AMDGPU/SOPInstructions.td b/llvm/lib/Target/AMDGPU/SOPInstructions.td
index 97d50d6142d35..8fa54de570e67 100644
--- a/llvm/lib/Target/AMDGPU/SOPInstructions.td
+++ b/llvm/lib/Target/AMDGPU/SOPInstructions.td
@@ -2073,8 +2073,6 @@ let AddedComplexity = 20 in {
>;
}
-// Uniform saturating unsigned subtraction: usubsat(a, b) = max(a, b) - b
-// If a >= b, result is a - b; otherwise max(a, b) = b, so b - b = 0.
// Higher complexity to prefer scalar over VALU patterns for uniform values.
let AddedComplexity = 20 in {
def : GCNPat<
@@ -2087,13 +2085,6 @@ let AddedComplexity = 20 in {
>;
} // End AddedComplexity = 20
-// V_ADD_I32_e32/S_ADD_U32 produces carry in VCC/SCC. For the vector
-// case, the sgpr-copies pass will fix this to use the vector version.
-def : GCNPat <
- (i32 (addc i32:$src0, i32:$src1)),
- (S_ADD_U32 $src0, $src1)
->;
-
// FIXME: We need to use COPY_TO_REGCLASS to work-around the fact that
// REG_SEQUENCE patterns don't support instructions with multiple
// outputs.
More information about the llvm-commits
mailing list