Skip to content

Commit 2bf9ff5

Browse files
committed
Fix bug introduced in previous commit where the wrong symbol was added to the opdict, fixes #312
1 parent 349000c commit 2bf9ff5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/modeling/graphs.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,11 +1157,10 @@ function prepare_rhs_for_storage!(ls::LoopSet, RHS::Union{Symbol,Expr}, array, r
11571157
ref = mpref.mref.ref
11581158
lrhs = gensym!(ls, "RHS")
11591159
mpref.varname = lrhs
1160-
add_operation!(ls, lrhs, RHS, mpref, elementbytes, position)
1160+
ls.opdict[lrhs] = add_operation!(ls, lrhs, RHS, mpref, elementbytes, position)
11611161
mpref.parents = cachedparents
11621162
op = add_store!(ls, mpref, elementbytes)
11631163
ls.syms_aliasing_refs[findfirst(==(mpref.mref), ls.refs_aliasing_syms)] = lrhs
1164-
ls.opdict[lrhs] = op
11651164
return op
11661165
end
11671166

src/parse/add_loads.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function add_load!(ls::LoopSet, op::Operation, actualarray::Bool = true)
3232
end
3333
end
3434
end
35-
allmatch && isstore(opp) ? first(parents(opp)) : opp
35+
allmatch && return isstore(opp) ? first(parents(opp)) : opp
3636
end
3737
add_vptr!(ls, op.ref.ref.array, vptr(op), actualarray)
3838
pushop!(ls, op, name(op))

0 commit comments

Comments
 (0)