Commit fd70c73
Mark stores as volatile so they're not optimized
away.
Stores emitted in kernel to write local ids to frame are never
referenced in a load instruction in the kernel. This causes llvm
optimizer to treat the stores as dead and they're subsequently optimized
away. This change marks those stores as volatile to indicate that some
callee may load data written by these stores and they shouldn't be
optimized away.1 parent 58765ab commit fd70c73
File tree
1 file changed
+3
-3
lines changed- IGC/Compiler/Optimizer/OpenCLPasses/WIFuncs
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
0 commit comments