Skip to content

Commit 66740f0

Browse files
authored
Remove PTX-specific hack. (#264)
We don't emit device function slots anymore.
1 parent bdf2c49 commit 66740f0

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/driver.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,6 @@ const __llvm_initialized = Ref(false)
156156
# because it recurses into the compiler
157157
if libraries
158158
runtime = load_runtime(job; ctx)
159-
if haskey(globals(runtime), "llvm.used")
160-
# the runtime shouldn't link-in stuff that gets preserved in the output. this is
161-
# a hack to get rid of the device function slots emitted by the PTX back-end,
162-
# but it also makes sense.
163-
gv = globals(runtime)["llvm.used"]
164-
LLVM.unsafe_delete!(runtime, gv)
165-
end
166159
runtime_fns = LLVM.name.(defs(runtime))
167160
end
168161

0 commit comments

Comments
 (0)