Commit 624f12d
committed
[amdgpu] Drop lowering of LDS used by global variables
Approximately revert D103431.
LDS variables are allocated at kernel launch and deallocated at kernel exit.
The address is therefore kernel execution dependent. Global variables are
initialized by values written to .data, which can't be done for a LDS variable
as there is no kernel running, or by a global constructor. Initializing the
global to the address of some LDS allocated by a global constructor is possible
but indistinguishable from undef.
Assigning the address of a LDS variable to a global should be a sema error. It
isn't for openmp, haven't checked other languages. Failing that it could be set
to undef, perhaps in this pass.
Reviewed By: rampitec
Differential Revision: https://reviews.llvm.org/D1154131 parent 87fe070 commit 624f12d
File tree
6 files changed
+4
-321
lines changed- llvm
- lib/Target/AMDGPU/Utils
- test/CodeGen/AMDGPU
6 files changed
+4
-321
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | 65 | | |
89 | 66 | | |
90 | 67 | | |
| |||
94 | 71 | | |
95 | 72 | | |
96 | 73 | | |
97 | | - | |
98 | 74 | | |
99 | 75 | | |
100 | 76 | | |
101 | 77 | | |
102 | 78 | | |
103 | 79 | | |
104 | 80 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
114 | 85 | | |
115 | 86 | | |
116 | 87 | | |
| |||
132 | 103 | | |
133 | 104 | | |
134 | 105 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | 106 | | |
145 | 107 | | |
146 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 29 | | |
34 | 30 | | |
35 | 31 | | |
| |||
This file was deleted.
Lines changed: 0 additions & 93 deletions
This file was deleted.
This file was deleted.
0 commit comments