Commit 8bbb5fa
committed
[SYCL] Move SYCLLowerWGLocalMemoryPass to OptimizerEarlyEPCallback
The pass transforms __sycl_allocateLocalMemory call to access of global
variable @WGLocalMem .
Move the transform to beginning of the optimizer since the access
could enable more optimization than the function call.
In addition, intel gpu compiler has a pass to transform global variable
in addrspace(3) to alloca, we must run SYCLLowerWGLocalMemoryPass before
it.1 parent f0ee2da commit 8bbb5fa
1 file changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1028 | 1028 | | |
1029 | 1029 | | |
1030 | 1030 | | |
1031 | | - | |
| 1031 | + | |
1032 | 1032 | | |
1033 | 1033 | | |
1034 | 1034 | | |
| |||
1043 | 1043 | | |
1044 | 1044 | | |
1045 | 1045 | | |
1046 | | - | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
1047 | 1054 | | |
1048 | 1055 | | |
1049 | 1056 | | |
| |||
1191 | 1198 | | |
1192 | 1199 | | |
1193 | 1200 | | |
1194 | | - | |
1195 | | - | |
1196 | | - | |
1197 | | - | |
1198 | 1201 | | |
1199 | 1202 | | |
1200 | 1203 | | |
| |||
0 commit comments