Skip to content

Commit

Permalink
We really don't need two nearly-identical implementations of mutable
Browse files Browse the repository at this point in the history
word-sized bitmaps.  The one in ocamlutil appears to be slightly newer,
so that's the one I'm keeping.
  • Loading branch information
Ben Liblit committed Nov 22, 2007
1 parent eafb0b0 commit 10b2823
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 280 deletions.
2 changes: 1 addition & 1 deletion Makefile.in
Expand Up @@ -387,6 +387,7 @@ DISTRIB_OCAMLUTIL = pretty.ml pretty.mli errormsg.ml errormsg.mli \
intmap.ml intmap.mli clist.ml clist.mli \
longarray.ml longarray.mli \
growArray.ml growArray.mli \
bitmap.ml bitmap.mli \
perfcount.c.in Makefile.ocaml


Expand All @@ -402,7 +403,6 @@ DISTRIB_SRC_EXT = logcalls.ml logcalls.mli \
deadcodeelim.ml availexps.ml \
dataflow.ml dataflow.mli \
dominators.ml dominators.mli \
bitmap.ml bitmap.mli \
ssa.ml ssa.mli \
stackoverflow.mli stackoverflow.ml \
canonicalize.ml canonicalize.mli \
Expand Down
224 changes: 0 additions & 224 deletions src/ext/bitmap.ml

This file was deleted.

50 changes: 0 additions & 50 deletions src/ext/bitmap.mli

This file was deleted.

10 changes: 5 additions & 5 deletions src/ext/ssa.ml
Expand Up @@ -179,14 +179,14 @@ let compute_idom (flowgraph: cfgInfo): idomInfo =
let u = eval v in
if sdno.(u) < sdno.(w) then sdno.(w) <- sdno.(u);)
predecessors.(w);
B.set bucket.(ndfs.(sdno.(w))) w true;
B.setTo bucket.(ndfs.(sdno.(w))) w true;
link parent.(w) w;
while not (B.empty bucket.(parent.(w))) do
let v =
match B.toList bucket.(parent.(w)) with
x :: _ -> x
| [] -> ignore(print_string "Error in dominfast");0 in
B.set bucket.(parent.(w)) v false;
B.setTo bucket.(parent.(w)) v false;
let u = eval v in
idom.(v) <- if sdno.(u) < sdno.(v) then u else parent.(w);
done;
Expand Down Expand Up @@ -265,7 +265,7 @@ let add_phi_functions_info (flowgraph: cfgInfo) : unit =
for i = 0 to size-1 do
List.iter
(fun (lhs,rhs) ->
List.iter (fun (r: reg) -> B.set defs.(i) r true) lhs;
List.iter (fun (r: reg) -> B.setTo defs.(i) r true) lhs;
)
flowgraph.blocks.(i).instrlist
done;
Expand All @@ -277,7 +277,7 @@ let add_phi_functions_info (flowgraph: cfgInfo) : unit =
fun i ->
let defIn = B.make size in
for j = 0 to size - 1 do
if B.get defs.(j) i then B.set defIn j true
if B.test defs.(j) i then B.setTo defIn j true
done;
let res = ref [] in
incr iterCount;
Expand All @@ -296,7 +296,7 @@ let add_phi_functions_info (flowgraph: cfgInfo) : unit =
end;
) df.(x)
done;
(* res := List.filter (fun blkId -> B.get liveIn.(blkId) i) !res; *)
(* res := List.filter (fun blkId -> B.test liveIn.(blkId) i) !res; *)
!res
) in
let result = Array.create size ([]) in
Expand Down

0 comments on commit 10b2823

Please sign in to comment.