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 cd45042 commit 176fae6Copy full SHA for 176fae6
compiler/lib/eval.ml
@@ -558,6 +558,10 @@ let eval_instr update_count inline_constant ~target info i =
558
in Specialize_js, which would make the call to [the_const_of]
559
below fail. *)
560
[ i ]
561
+ | Let (x, Prim (Extern "caml_atomic_load_field", [ Pv o; f ])) -> (
562
+ match the_int info f with
563
+ | None -> [ i ]
564
+ | Some i -> [ Let (x, Field (o, Targetint.to_int_exn i, Non_float)) ])
565
| Let (x, Prim (IsInt, [ y ])) -> (
566
match is_int info y with
567
| Unknown -> [ i ]
0 commit comments