File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
sycl-jit/jit-compiler/lib/rtc Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -51,13 +51,6 @@ bool jit_compiler::post_link::removeSYCLKernelsConstRefArray(Module &M) {
5151 return true ;
5252}
5353
54- // Removes all device_global variables from the llvm.compiler.used global
55- // variable. A device_global with internal linkage will be in llvm.compiler.used
56- // to avoid the compiler wrongfully removing it during optimizations. However,
57- // as an effect the device_global variables will also be distributed across
58- // binaries, even if llvm.compiler.used has served its purpose. To avoid
59- // polluting other binaries with unused device_global variables, we remove them
60- // from llvm.compiler.used and erase them if they have no further uses.
6154bool jit_compiler::post_link::removeDeviceGlobalFromCompilerUsed (Module &M) {
6255 GlobalVariable *GV = M.getGlobalVariable (" llvm.compiler.used" );
6356 if (!GV)
You can’t perform that action at this time.
0 commit comments