Skip to content

Commit

Permalink
Fix ordering for vector fallback of apply iterate (#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored and michel2323 committed Nov 7, 2023
1 parent a716c08 commit 8814bc0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2667,6 +2667,9 @@ function common_apply_iterate_fwd(offset, B, orig, gutils, normalR, shadowR)
shadow = LLVM.UndefValue(ST)
for i in 1:width
shadow = insert_value!(B, shadow, cal, i-1)
if i == 1
API.moveBefore(cal, shadow, B)
end
end
end
unsafe_store!(shadowR, shadow.ref)
Expand All @@ -2690,6 +2693,9 @@ function common_apply_iterate_augfwd(offset, B, orig, gutils, normalR, shadowR,
shadow = LLVM.UndefValue(ST)
for i in 1:width
shadow = insert_value!(B, shadow, cal, i-1)
if i == 1
API.moveBefore(cal, shadow, B)
end
end
end
unsafe_store!(shadowR, shadow.ref)
Expand Down

0 comments on commit 8814bc0

Please sign in to comment.