Skip to content

Commit ec89eeb

Browse files
committed
Drop duplicate comment.
Signed-off-by: Julian Oppermann <[email protected]>
1 parent c5cc2f3 commit ec89eeb

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

sycl-jit/jit-compiler/lib/rtc/PostLinkActions.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff 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.
6154
bool jit_compiler::post_link::removeDeviceGlobalFromCompilerUsed(Module &M) {
6255
GlobalVariable *GV = M.getGlobalVariable("llvm.compiler.used");
6356
if (!GV)

0 commit comments

Comments
 (0)