We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 075bc6a commit 8923c9bCopy full SHA for 8923c9b
arrayjit/lib/assignments.ml
@@ -230,7 +230,7 @@ let%track4_sexp to_low_level code =
230
let lhs_ll = get (Node lhs) lhs_idcs in
231
let rhses_ll = Array.mapi rhses_idcs ~f:(fun i rhs_idcs -> get rhses.(i) rhs_idcs) in
232
let rhs2 = apply_op op rhses_ll in
233
- if can_skip_accumulation ~projections then set lhs lhs_idcs rhs2
+ if initialize_neutral && can_skip_accumulation ~projections then set lhs lhs_idcs rhs2
234
else set lhs lhs_idcs @@ apply_op (Ops.Binop accum) [| lhs_ll; rhs2 |]
235
in
236
let rec for_loop rev_iters = function
0 commit comments