[llvm] [AMDGPU] Remove hasPostISelHook for atomics. NFC. (PR #116791)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 19 04:02:46 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-amdgpu
Author: Jay Foad (jayfoad)
<details>
<summary>Changes</summary>
This is not required since 2147b6c89d44 changed that way that no-ret
atomic ops are selected.
---
Full diff: https://github.com/llvm/llvm-project/pull/116791.diff
3 Files Affected:
- (modified) llvm/lib/Target/AMDGPU/BUFInstructions.td (-1)
- (modified) llvm/lib/Target/AMDGPU/DSInstructions.td (-3)
- (modified) llvm/lib/Target/AMDGPU/FLATInstructions.td (-1)
``````````diff
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;
``````````
</details>
https://github.com/llvm/llvm-project/pull/116791
More information about the llvm-commits
mailing list