Skip to content

Commit 19deeee

Browse files
authored
Mark reactant activities correctly (#2411)
* Mark reactant activities correctly * inact * fix * fix
1 parent 10d4a93 commit 19deeee

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

src/analyses/activity.jl

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,26 @@ end
235235
end
236236

237237
if is_wrapped_number(T)
238-
return active_reg_inner(
238+
if justActive
239+
return AnyState
240+
end
241+
242+
if active_reg_inner(
239243
unwrapped_number_type(T),
240244
seen,
241245
world,
242246
Val(justActive),
243247
Val(UnionSret),
244248
Val(AbstractIsMixed),
245-
)
249+
) == AnyState
250+
return AnyState
251+
else
252+
if AbstractIsMixed
253+
return MixedState
254+
else
255+
return DupState
256+
end
257+
end
246258
end
247259

248260
if is_mutable_array(T)

src/llvm/attributes.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
const nofreefns = Set{String}((
2+
"BufferToDevice",
3+
"BufferToClient",
24
"jl_typeof",
35
"julia.gc_loaded",
46
"jl_egal__unboxed", "ijl_egal__unboxed",
@@ -159,6 +161,8 @@ const nofreefns = Set{String}((
159161
))
160162

161163
const inactivefns = Set{String}((
164+
"BufferToDevice",
165+
"BufferToClient",
162166
"jl_typeof",
163167
"jl_egal__unboxed", "ijl_egal__unboxed",
164168
"ClientGetDevice",

0 commit comments

Comments
 (0)