Skip to content

Commit cdc7196

Browse files
committed
Remove now-unused fields of procedure
1 parent ef76c9b commit cdc7196

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

arrayjit/lib/cc_backend.ml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ let init ~label =
5757
type library = { lib : (Dl.library[@sexp.opaque]); libname : string } [@@deriving sexp_of]
5858

5959
type procedure = {
60-
lowered : Low_level.optimized;
6160
bindings : Indexing.unit_bindings;
6261
name : string;
6362
result : library;
@@ -157,7 +156,7 @@ let%diagn_sexp compile ~(name : string) ~opt_ctx_arrays bindings (lowered : Low_
157156
let params = Syntax.compile_proc ~name pp_file.ppf idx_params ~is_global lowered in
158157
pp_file.finalize ();
159158
let result = c_compile_and_load ~f_name:pp_file.f_name in
160-
{ lowered; result; params; bindings; name; opt_ctx_arrays }
159+
{ result; params; bindings; name; opt_ctx_arrays }
161160

162161
let%diagn_sexp compile_batch ~names ~opt_ctx_arrays bindings
163162
(lowereds : Low_level.optimized option array) =
@@ -207,9 +206,8 @@ let%diagn_sexp compile_batch ~names ~opt_ctx_arrays bindings
207206
let opt_ctx_arrays = Option.map opt_ctx_arrays ~f:(fun _ -> !global_ctx_arrays) in
208207
( opt_ctx_arrays,
209208
Array.mapi params ~f:(fun i params ->
210-
Option.map2 names.(i) lowereds.(i) ~f:(fun name lowered ->
209+
Option.map names.(i) ~f:(fun name ->
211210
{
212-
lowered;
213211
result;
214212
params = Option.value_exn ~here:[%here] params;
215213
bindings;

arrayjit/lib/gcc_backend.gccjit.ml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ type procedure = {
116116
result : (Gccjit.result[@sexp.opaque]);
117117
opt_ctx_arrays : Ndarray.t Map.M(Tn).t option;
118118
params : param_source list;
119-
expected_merge_node : Tn.t option;
120119
}
121120
[@@deriving sexp_of]
122121

@@ -737,7 +736,6 @@ let compile ~(name : string) ~opt_ctx_arrays bindings (lowered : Low_level.optim
737736
name;
738737
opt_ctx_arrays;
739738
params = List.map ~f:snd params;
740-
expected_merge_node = lowered.merge_node;
741739
}
742740

743741
let%diagn_sexp compile_batch ~(names : string option array) ~opt_ctx_arrays bindings
@@ -783,8 +781,6 @@ let%diagn_sexp compile_batch ~(names : string option array) ~opt_ctx_arrays bind
783781
name;
784782
opt_ctx_arrays;
785783
params = List.map ~f:snd params;
786-
expected_merge_node =
787-
Option.(join @@ map lowereds.(i) ~f:(fun optim -> optim.merge_node));
788784
})) )
789785

790786
let alloc_buffer ?old_buffer ~size_in_bytes () =

0 commit comments

Comments
 (0)