diff --git a/src/KernelAbstractions.jl b/src/KernelAbstractions.jl index c022c7cef..d7ca0ac8a 100644 --- a/src/KernelAbstractions.jl +++ b/src/KernelAbstractions.jl @@ -447,8 +447,6 @@ y = adapt(CPU(), x) # an Array again """ Adapt.adapt_storage(::Backend, x) -Adapt.adapt_storage(::ConstAdaptor, a::Array) = Base.Experimental.Const(a) - constify(arg) = adapt(ConstAdaptor(), arg) include("nditeration.jl") diff --git a/src/macros.jl b/src/macros.jl index bb1ca5635..d0b05e707 100644 --- a/src/macros.jl +++ b/src/macros.jl @@ -79,7 +79,6 @@ function transform_gpu!(def, constargs, force_inbounds, unsafe_indices) # `Any[]`, since `split` hands back `LineNumberNode`s alongside `Expr`s new_stmts = Any[] body = MacroTools.flatten(def[:body]) - push!(new_stmts, Expr(:aliasscope)) if !unsafe_indices push!(new_stmts, :(__active_lane__ = $__validindex(__ctx__))) end @@ -94,7 +93,6 @@ function transform_gpu!(def, constargs, force_inbounds, unsafe_indices) if force_inbounds push!(new_stmts, Expr(:inbounds, :pop)) end - push!(new_stmts, Expr(:popaliasscope)) push!(new_stmts, :(return nothing)) def[:body] = Expr( :let,