7
7
8
8
define i32 @workitem_id_x () {
9
9
; ALL-LABEL: 'workitem_id_x'
10
- ; ALL-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.x()
10
+ ; ALL-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.x()
11
11
; ALL-NEXT: Cost Model: Found an estimated cost of 10 for instruction: ret i32 %result
12
12
;
13
13
; SIZE-LABEL: 'workitem_id_x'
14
- ; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.x()
14
+ ; SIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.x()
15
15
; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 %result
16
16
;
17
17
%result = call i32 @llvm.amdgcn.workitem.id.x ()
@@ -20,12 +20,12 @@ define i32 @workitem_id_x() {
20
20
21
21
define amdgpu_kernel void @kernel_workitem_id_x (ptr addrspace (1 ) %ptr ) {
22
22
; ALL-LABEL: 'kernel_workitem_id_x'
23
- ; ALL-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.x()
23
+ ; ALL-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.x()
24
24
; ALL-NEXT: Cost Model: Found an estimated cost of 1 for instruction: store i32 %result, ptr addrspace(1) %ptr, align 4
25
25
; ALL-NEXT: Cost Model: Found an estimated cost of 10 for instruction: ret void
26
26
;
27
27
; SIZE-LABEL: 'kernel_workitem_id_x'
28
- ; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.x()
28
+ ; SIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.x()
29
29
; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: store i32 %result, ptr addrspace(1) %ptr, align 4
30
30
; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret void
31
31
;
@@ -36,11 +36,11 @@ define amdgpu_kernel void @kernel_workitem_id_x(ptr addrspace(1) %ptr) {
36
36
37
37
define i32 @workitem_id_y () {
38
38
; ALL-LABEL: 'workitem_id_y'
39
- ; ALL-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.y()
39
+ ; ALL-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.y()
40
40
; ALL-NEXT: Cost Model: Found an estimated cost of 10 for instruction: ret i32 %result
41
41
;
42
42
; SIZE-LABEL: 'workitem_id_y'
43
- ; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.y()
43
+ ; SIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.y()
44
44
; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 %result
45
45
;
46
46
%result = call i32 @llvm.amdgcn.workitem.id.y ()
@@ -49,12 +49,12 @@ define i32 @workitem_id_y() {
49
49
50
50
define amdgpu_kernel void @kernel_workitem_id_y (ptr addrspace (1 ) %ptr ) {
51
51
; ALL-LABEL: 'kernel_workitem_id_y'
52
- ; ALL-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.y()
52
+ ; ALL-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.y()
53
53
; ALL-NEXT: Cost Model: Found an estimated cost of 1 for instruction: store i32 %result, ptr addrspace(1) %ptr, align 4
54
54
; ALL-NEXT: Cost Model: Found an estimated cost of 10 for instruction: ret void
55
55
;
56
56
; SIZE-LABEL: 'kernel_workitem_id_y'
57
- ; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.y()
57
+ ; SIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.y()
58
58
; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: store i32 %result, ptr addrspace(1) %ptr, align 4
59
59
; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret void
60
60
;
@@ -65,11 +65,11 @@ define amdgpu_kernel void @kernel_workitem_id_y(ptr addrspace(1) %ptr) {
65
65
66
66
define i32 @workitem_id_z () {
67
67
; ALL-LABEL: 'workitem_id_z'
68
- ; ALL-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.y()
68
+ ; ALL-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.y()
69
69
; ALL-NEXT: Cost Model: Found an estimated cost of 10 for instruction: ret i32 %result
70
70
;
71
71
; SIZE-LABEL: 'workitem_id_z'
72
- ; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.y()
72
+ ; SIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.y()
73
73
; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 %result
74
74
;
75
75
%result = call i32 @llvm.amdgcn.workitem.id.y ()
@@ -78,12 +78,12 @@ define i32 @workitem_id_z() {
78
78
79
79
define amdgpu_kernel void @kernel_workitem_id_z (ptr addrspace (1 ) %ptr ) {
80
80
; ALL-LABEL: 'kernel_workitem_id_z'
81
- ; ALL-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.z()
81
+ ; ALL-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.z()
82
82
; ALL-NEXT: Cost Model: Found an estimated cost of 1 for instruction: store i32 %result, ptr addrspace(1) %ptr, align 4
83
83
; ALL-NEXT: Cost Model: Found an estimated cost of 10 for instruction: ret void
84
84
;
85
85
; SIZE-LABEL: 'kernel_workitem_id_z'
86
- ; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.z()
86
+ ; SIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i32 @llvm.amdgcn.workitem.id.z()
87
87
; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: store i32 %result, ptr addrspace(1) %ptr, align 4
88
88
; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret void
89
89
;
@@ -94,11 +94,11 @@ define amdgpu_kernel void @kernel_workitem_id_z(ptr addrspace(1) %ptr) {
94
94
95
95
define i32 @workgroup_id_x () {
96
96
; ALL-LABEL: 'workgroup_id_x'
97
- ; ALL-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i32 @llvm.amdgcn.workgroup.id.x()
97
+ ; ALL-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i32 @llvm.amdgcn.workgroup.id.x()
98
98
; ALL-NEXT: Cost Model: Found an estimated cost of 10 for instruction: ret i32 %result
99
99
;
100
100
; SIZE-LABEL: 'workgroup_id_x'
101
- ; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i32 @llvm.amdgcn.workgroup.id.x()
101
+ ; SIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i32 @llvm.amdgcn.workgroup.id.x()
102
102
; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 %result
103
103
;
104
104
%result = call i32 @llvm.amdgcn.workgroup.id.x ()
@@ -107,11 +107,11 @@ define i32 @workgroup_id_x() {
107
107
108
108
define i32 @workgroup_id_y () {
109
109
; ALL-LABEL: 'workgroup_id_y'
110
- ; ALL-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i32 @llvm.amdgcn.workgroup.id.y()
110
+ ; ALL-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i32 @llvm.amdgcn.workgroup.id.y()
111
111
; ALL-NEXT: Cost Model: Found an estimated cost of 10 for instruction: ret i32 %result
112
112
;
113
113
; SIZE-LABEL: 'workgroup_id_y'
114
- ; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i32 @llvm.amdgcn.workgroup.id.y()
114
+ ; SIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i32 @llvm.amdgcn.workgroup.id.y()
115
115
; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 %result
116
116
;
117
117
%result = call i32 @llvm.amdgcn.workgroup.id.y ()
@@ -120,11 +120,11 @@ define i32 @workgroup_id_y() {
120
120
121
121
define i32 @workgroup_id_z () {
122
122
; ALL-LABEL: 'workgroup_id_z'
123
- ; ALL-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i32 @llvm.amdgcn.workgroup.id.y()
123
+ ; ALL-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i32 @llvm.amdgcn.workgroup.id.y()
124
124
; ALL-NEXT: Cost Model: Found an estimated cost of 10 for instruction: ret i32 %result
125
125
;
126
126
; SIZE-LABEL: 'workgroup_id_z'
127
- ; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i32 @llvm.amdgcn.workgroup.id.y()
127
+ ; SIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i32 @llvm.amdgcn.workgroup.id.y()
128
128
; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 %result
129
129
;
130
130
%result = call i32 @llvm.amdgcn.workgroup.id.y ()
@@ -133,11 +133,11 @@ define i32 @workgroup_id_z() {
133
133
134
134
define i32 @lds_kernel_id () {
135
135
; ALL-LABEL: 'lds_kernel_id'
136
- ; ALL-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i32 @llvm.amdgcn.lds.kernel.id()
136
+ ; ALL-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i32 @llvm.amdgcn.lds.kernel.id()
137
137
; ALL-NEXT: Cost Model: Found an estimated cost of 10 for instruction: ret i32 %result
138
138
;
139
139
; SIZE-LABEL: 'lds_kernel_id'
140
- ; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i32 @llvm.amdgcn.lds.kernel.id()
140
+ ; SIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i32 @llvm.amdgcn.lds.kernel.id()
141
141
; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 %result
142
142
;
143
143
%result = call i32 @llvm.amdgcn.lds.kernel.id ()
@@ -146,11 +146,11 @@ define i32 @lds_kernel_id() {
146
146
147
147
define ptr addrspace (4 ) @dispatch_ptr () {
148
148
; ALL-LABEL: 'dispatch_ptr'
149
- ; ALL-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call ptr addrspace(4) @llvm.amdgcn.dispatch.ptr()
149
+ ; ALL-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call ptr addrspace(4) @llvm.amdgcn.dispatch.ptr()
150
150
; ALL-NEXT: Cost Model: Found an estimated cost of 10 for instruction: ret ptr addrspace(4) %result
151
151
;
152
152
; SIZE-LABEL: 'dispatch_ptr'
153
- ; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call ptr addrspace(4) @llvm.amdgcn.dispatch.ptr()
153
+ ; SIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call ptr addrspace(4) @llvm.amdgcn.dispatch.ptr()
154
154
; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret ptr addrspace(4) %result
155
155
;
156
156
%result = call ptr addrspace (4 ) @llvm.amdgcn.dispatch.ptr ()
@@ -159,11 +159,11 @@ define ptr addrspace(4) @dispatch_ptr() {
159
159
160
160
define i64 @dispatch_id_ () {
161
161
; ALL-LABEL: 'dispatch_id_'
162
- ; ALL-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i64 @llvm.amdgcn.dispatch.id()
162
+ ; ALL-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i64 @llvm.amdgcn.dispatch.id()
163
163
; ALL-NEXT: Cost Model: Found an estimated cost of 10 for instruction: ret i64 %result
164
164
;
165
165
; SIZE-LABEL: 'dispatch_id_'
166
- ; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call i64 @llvm.amdgcn.dispatch.id()
166
+ ; SIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call i64 @llvm.amdgcn.dispatch.id()
167
167
; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i64 %result
168
168
;
169
169
%result = call i64 @llvm.amdgcn.dispatch.id ()
@@ -172,11 +172,11 @@ define i64 @dispatch_id_() {
172
172
173
173
define ptr addrspace (4 ) @implicitarg_ptr () {
174
174
; ALL-LABEL: 'implicitarg_ptr'
175
- ; ALL-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call ptr addrspace(4) @llvm.amdgcn.implicitarg.ptr()
175
+ ; ALL-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call ptr addrspace(4) @llvm.amdgcn.implicitarg.ptr()
176
176
; ALL-NEXT: Cost Model: Found an estimated cost of 10 for instruction: ret ptr addrspace(4) %result
177
177
;
178
178
; SIZE-LABEL: 'implicitarg_ptr'
179
- ; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call ptr addrspace(4) @llvm.amdgcn.implicitarg.ptr()
179
+ ; SIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call ptr addrspace(4) @llvm.amdgcn.implicitarg.ptr()
180
180
; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret ptr addrspace(4) %result
181
181
;
182
182
%result = call ptr addrspace (4 ) @llvm.amdgcn.implicitarg.ptr ()
@@ -185,11 +185,11 @@ define ptr addrspace(4) @implicitarg_ptr() {
185
185
186
186
define ptr addrspace (4 ) @queue_ptr () {
187
187
; ALL-LABEL: 'queue_ptr'
188
- ; ALL-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call ptr addrspace(4) @llvm.amdgcn.queue.ptr()
188
+ ; ALL-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call ptr addrspace(4) @llvm.amdgcn.queue.ptr()
189
189
; ALL-NEXT: Cost Model: Found an estimated cost of 10 for instruction: ret ptr addrspace(4) %result
190
190
;
191
191
; SIZE-LABEL: 'queue_ptr'
192
- ; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %result = call ptr addrspace(4) @llvm.amdgcn.queue.ptr()
192
+ ; SIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %result = call ptr addrspace(4) @llvm.amdgcn.queue.ptr()
193
193
; SIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret ptr addrspace(4) %result
194
194
;
195
195
%result = call ptr addrspace (4 ) @llvm.amdgcn.queue.ptr ()
0 commit comments