Skip to content

Commit d46e5dc

Browse files
committed
use identity for const
1 parent 2d9ecd4 commit d46e5dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tapedfunction.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,13 @@ end
273273
const IRVar = Union{Core.SSAValue, Core.SlotNumber}
274274

275275
function _const_instruction(var::IRVar, v, bindings::Dict{Symbol, Any}, ir)
276+
#=
276277
if isa(var, Core.SSAValue)
277278
box = bind_var!(var, bindings, ir)
278279
bindings[box.id] = v
279280
return GotoInstruction(Box{Bool}(:_true), 0) # NOOP
280281
end
282+
=#
281283
return Instruction(identity, (bind_var!(v, bindings, ir),), bind_var!(var, bindings, ir))
282284
end
283285

0 commit comments

Comments
 (0)