@@ -89,7 +89,7 @@ let rec float_needs = function
89
89
let n1 = float_needs arg1 in
90
90
let n2 = float_needs arg2 in
91
91
if n1 = n2 then 1 + n1 else if n1 > n2 then n1 else n2
92
- | Cop (Cextcall { name = fn }, args, _dbg)
92
+ | Cop (Cextcall { func = fn }, args, _dbg)
93
93
when ! fast_math && List. mem fn inline_float_ops ->
94
94
begin match args with
95
95
[arg] -> float_needs arg
@@ -168,7 +168,7 @@ method is_immediate_test _cmp _n = true
168
168
169
169
method! is_simple_expr e =
170
170
match e with
171
- | Cop (Cextcall { name = fn; }, args, _)
171
+ | Cop (Cextcall { func = fn; }, args, _)
172
172
when ! fast_math && List. mem fn inline_float_ops ->
173
173
(* inlined float ops are simple if their arguments are *)
174
174
List. for_all self#is_simple_expr args
@@ -177,7 +177,7 @@ method! is_simple_expr e =
177
177
178
178
method! effects_of e =
179
179
match e with
180
- | Cop (Cextcall { name = fn; }, args, _)
180
+ | Cop (Cextcall { func = fn; }, args, _)
181
181
when ! fast_math && List. mem fn inline_float_ops ->
182
182
Selectgen.Effect_and_coeffect. join_list_map args self#effects_of
183
183
| _ ->
@@ -239,7 +239,7 @@ method! select_operation op args dbg =
239
239
super#select_operation op args dbg
240
240
end
241
241
(* Recognize inlined floating point operations *)
242
- | Cextcall { name = fn; alloc = false ; _ }
242
+ | Cextcall { func = fn; alloc = false ; _ }
243
243
when ! fast_math && List. mem fn inline_float_ops ->
244
244
(Ispecific (Ifloatspecial fn), args)
245
245
(* Default *)
0 commit comments