[llvm] [AMDGPU] Remove hasPostISelHook for atomics. NFC. (PR #116791)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 19 04:02:12 PST 2024
https://github.com/jayfoad created https://github.com/llvm/llvm-project/pull/116791
This is not required since 2147b6c89d44 changed that way that no-ret
atomic ops are selected.
>From 07603dd87cb402547f728d51a29dfb52ba1e1981 Mon Sep 17 00:00:00 2001
From: Jay Foad <jay.foad at amd.com>
Date: Tue, 19 Nov 2024 11:49:39 +0000
Subject: [PATCH] [AMDGPU] Remove hasPostISelHook for atomics. NFC.
This is not required since 2147b6c89d44 changed that way that no-ret
atomic ops are selected.
---
llvm/lib/Target/AMDGPU/BUFInstructions.td | 1 -
llvm/lib/Target/AMDGPU/DSInstructions.td | 3 ---
llvm/lib/Target/AMDGPU/FLATInstructions.td | 1 -
3 files changed, 5 deletions(-)
diff --git a/llvm/lib/Target/AMDGPU/BUFInstructions.td b/llvm/lib/Target/AMDGPU/BUFInstructions.td
index 7283733dea22db..e5978aee2b39a3 100644
--- a/llvm/lib/Target/AMDGPU/BUFInstructions.td
+++ b/llvm/lib/Target/AMDGPU/BUFInstructions.td
@@ -740,7 +740,6 @@ class MUBUF_Atomic_Pseudo<string opName,
MUBUF_SetupAddr<addrKindCopy> {
let mayStore = 1;
let mayLoad = 1;
- let hasPostISelHook = 1;
let hasSideEffects = 1;
let DisableWQM = 1;
let has_glc = 0;
diff --git a/llvm/lib/Target/AMDGPU/DSInstructions.td b/llvm/lib/Target/AMDGPU/DSInstructions.td
index 7724821bbd7c36..061ffda2498f45 100644
--- a/llvm/lib/Target/AMDGPU/DSInstructions.td
+++ b/llvm/lib/Target/AMDGPU/DSInstructions.td
@@ -194,7 +194,6 @@ class DS_1A1D_RET <string opName, RegisterClass rc = VGPR_32,
(ins VGPR_32:$addr, data_op:$data0, Offset:$offset, gds:$gds),
" $vdst, $addr, $data0$offset$gds"> {
- let hasPostISelHook = 1;
let has_data1 = 0;
let IsAtomicRet = 1;
}
@@ -223,7 +222,6 @@ class DS_1A2D_RET<string opName,
(ins VGPR_32:$addr, src_op:$data0, src_op:$data1, Offset:$offset, gds:$gds),
" $vdst, $addr, $data0, $data1$offset$gds"> {
- let hasPostISelHook = 1;
let IsAtomicRet = 1;
}
@@ -248,7 +246,6 @@ class DS_1A2D_Off8_RET<string opName,
" $vdst, $addr, $data0, $data1$offset0$offset1$gds"> {
let has_offset = 0;
- let hasPostISelHook = 1;
}
multiclass DS_1A2D_Off8_RET_mc<string opName,
diff --git a/llvm/lib/Target/AMDGPU/FLATInstructions.td b/llvm/lib/Target/AMDGPU/FLATInstructions.td
index 861fcf017d9e4d..72b13fd5f3695a 100644
--- a/llvm/lib/Target/AMDGPU/FLATInstructions.td
+++ b/llvm/lib/Target/AMDGPU/FLATInstructions.td
@@ -516,7 +516,6 @@ class FLAT_AtomicNoRet_Pseudo<string opName, dag outs, dag ins,
class FLAT_AtomicRet_Pseudo<string opName, dag outs, dag ins,
string asm, list<dag> pattern = []>
: FLAT_AtomicNoRet_Pseudo<opName, outs, ins, asm, pattern> {
- let hasPostISelHook = 1;
let has_vdst = 1;
let glcValue = 1;
let sccbValue = 0;
More information about the llvm-commits
mailing list