File tree Expand file tree Collapse file tree 3 files changed +765
-37
lines changed Expand file tree Collapse file tree 3 files changed +765
-37
lines changed Original file line number Diff line number Diff line change @@ -17565,7 +17565,7 @@ SITargetLowering::lowerIdempotentRMWIntoFencedLoad(AtomicRMWInst *AI) const {
17565
17565
bool SITargetLowering::hasAndNot(SDValue Op) const {
17566
17566
// Return false if the operation is divergent, as AND-NOT is a scalar-only
17567
17567
// instruction.
17568
- if (Op->isDivergent() || !Op->isMachineOpcode() )
17568
+ if (Op->isDivergent())
17569
17569
return false;
17570
17570
17571
17571
EVT VT = Op.getValueType();
Original file line number Diff line number Diff line change @@ -25,24 +25,6 @@ entry:
25
25
ret void
26
26
}
27
27
28
- ; GCN-LABEL: {{^}}scalar_andn2_i32_one_sgpr
29
- ; GCN: s_andn2_b32
30
- define i32 @scalar_andn2_i32_one_sgpr (i32 inreg %a , i32 inreg %b ) {
31
- entry:
32
- %nb = xor i32 %b , -1
33
- %and = and i32 %a , %nb
34
- ret i32 %and
35
- }
36
-
37
- ; GCN-LABEL: {{^}}scalar_andn2_i64_one_sgpr
38
- ; GCN: s_andn2_b64
39
- define i64 @scalar_andn2_i64_one_sgpr (i64 inreg %a , i64 inreg %b ) {
40
- entry:
41
- %nb = xor i64 %b , -1
42
- %and = and i64 %a , %nb
43
- ret i64 %and
44
- }
45
-
46
28
; GCN-LABEL: {{^}}scalar_orn2_i32_one_use
47
29
; GCN: s_orn2_b32
48
30
define amdgpu_kernel void @scalar_orn2_i32_one_use (
@@ -65,24 +47,6 @@ entry:
65
47
ret void
66
48
}
67
49
68
- ; GCN-LABEL: {{^}}scalar_orn2_i32_one_use_sgpr
69
- ; GCN: s_orn2_b32
70
- define i32 @scalar_orn2_i32_one_use_sgpr (i32 inreg %a , i32 inreg %b ) {
71
- entry:
72
- %nb = xor i32 %b , -1
73
- %or = or i32 %a , %nb
74
- ret i32 %or ;
75
- }
76
-
77
- ; GCN-LABEL: {{^}}scalar_orn2_i64_one_use_sgpr
78
- ; GCN: s_orn2_b64
79
- define i64 @scalar_orn2_i64_one_use_sgpr (i64 inreg %a , i64 inreg %b ) {
80
- entry:
81
- %nb = xor i64 %b , -1
82
- %or = or i64 %a , %nb
83
- ret i64 %or ;
84
- }
85
-
86
50
; GCN-LABEL: {{^}}vector_andn2_i32_s_v_one_use
87
51
; GCN: v_not_b32
88
52
; GCN: v_and_b32
You can’t perform that action at this time.
0 commit comments