Skip to content

Commit a1107d5

Browse files
committed
revert previous changes
1 parent 2bf9ff5 commit a1107d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/modeling/graphs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@ 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-
ls.opdict[lrhs] = add_operation!(ls, lrhs, RHS, mpref, elementbytes, position)
1160+
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

src/parse/add_loads.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ end
1414
function add_load!(ls::LoopSet, op::Operation, actualarray::Bool = true)
1515
@assert isload(op)
1616
if (id = maybeaddref!(ls, op)) > 0 # try to CSE
17-
opp = ls.opdict[ls.syms_aliasing_refs[id]] # throw an error if not found.
17+
opp = ls.opdict[ls.syms_aliasing_refs[id]]
1818
op_inds = getindicesonly(op)
1919
li = op.ref.loopedindex
2020
allmatch = true

0 commit comments

Comments
 (0)