Commit 0cc7540
authored
[SYCL][Driver] Pass -emit-param-info (almost) unconditionally (#5926)
Motivation behind this change is that user can set different
optimization levels at compil and link stages when separate compilation
is performed:
```
clang++ -fsycl -c a.cpp -O2 -o a.o
clang++ -fsycl a.o -O0 -o a.out
```
In such situation, compile step launches dead argument eliminination
optimization, which could alter kernels signature. However, during the
link step `-emit-param-info` weren't passed until this commit and
without that information runtime is not capable to handle altered
kernel signature (with arguments being optimized out).1 parent 289e33d commit 0cc7540
File tree
2 files changed
+2
-6
lines changed- clang
- lib/Driver/ToolChains
- test/Driver
2 files changed
+2
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9543 | 9543 | | |
9544 | 9544 | | |
9545 | 9545 | | |
9546 | | - | |
9547 | | - | |
9548 | | - | |
9549 | | - | |
9550 | | - | |
| 9546 | + | |
9551 | 9547 | | |
9552 | 9548 | | |
9553 | 9549 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments