Skip to content

Commit 8c43b12

Browse files
committed
Fix reduce!
1 parent 39fe5a8 commit 8c43b12

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/systems/alias_elimination.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ function reduce!(mm::SparseMatrixCLIL, ag::AliasGraph)
246246
# if we add a variable to what we already visited, make sure
247247
# to bump the cursor.
248248
j += i <= j
249+
for (i, e) in enumerate(dels)
250+
e >= i && (dels[i] += 1)
251+
end
249252
insert!(rs, i, alias)
250253
insert!(rvals, i, inc)
251254
else

0 commit comments

Comments
 (0)