[llvm] b7df715 - [AMDGPU][GlobalISel] Force return atomic selection for now
Abinav Puthan Purayil via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 20 03:30:49 PDT 2022
Author: Abinav Puthan Purayil
Date: 2022-04-20T16:00:08+05:30
New Revision: b7df71524e0befa7ad399a5191d6e85891f770ab
URL: https://github.com/llvm/llvm-project/commit/b7df71524e0befa7ad399a5191d6e85891f770ab
DIFF: https://github.com/llvm/llvm-project/commit/b7df71524e0befa7ad399a5191d6e85891f770ab.diff
LOG: [AMDGPU][GlobalISel] Force return atomic selection for now
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPUInstructions.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUInstructions.td b/llvm/lib/Target/AMDGPU/AMDGPUInstructions.td
index 6e50f422e9bf9..9403d22b9227e 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUInstructions.td
+++ b/llvm/lib/Target/AMDGPU/AMDGPUInstructions.td
@@ -541,21 +541,25 @@ defm atomic_store_#as : binary_atomic_op<atomic_store>;
// GlobalISelEmitter allows pattern matches where src and dst def count
// mismatch.
multiclass ret_noret_binary_atomic_op<SDNode atomic_op, bit IsInt = 1> {
- let PredicateCode = [{ return (SDValue(N, 0).use_empty()); }] in {
+ let PredicateCode = [{ return (SDValue(N, 0).use_empty()); }],
+ GISelPredicateCode = [{ return false; }] in {
defm "_noret" : binary_atomic_op<atomic_op, IsInt>;
}
- let PredicateCode = [{ return !(SDValue(N, 0).use_empty()); }] in {
+ let PredicateCode = [{ return !(SDValue(N, 0).use_empty()); }],
+ GISelPredicateCode = [{ return true; }] in {
defm "_ret" : binary_atomic_op<atomic_op, IsInt>;
}
}
multiclass ret_noret_ternary_atomic_op<SDNode atomic_op> {
- let PredicateCode = [{ return (SDValue(N, 0).use_empty()); }] in {
+ let PredicateCode = [{ return (SDValue(N, 0).use_empty()); }],
+ GISelPredicateCode = [{ return false; }] in {
defm "_noret" : ternary_atomic_op<atomic_op>;
}
- let PredicateCode = [{ return !(SDValue(N, 0).use_empty()); }] in {
+ let PredicateCode = [{ return !(SDValue(N, 0).use_empty()); }],
+ GISelPredicateCode = [{ return true; }] in {
defm "_ret" : ternary_atomic_op<atomic_op>;
}
}
More information about the llvm-commits
mailing list