ocaml-flambda / flambda-backend

The Flambda backend project for OCaml
106 stars 76 forks source link

Ghost regions etc. (new version of "Remove unnecessary regions for %int_as_pointer") #2682

Closed mshinwell closed 1 month ago

mshinwell commented 3 months ago

This is a new version of https://github.com/ocaml-flambda/flambda-backend/pull/2677 using the double region variable and ghost region approach. This seems to work pretty well, not least because it's shown up two concepts that I think were previously being conflated: these can be seen now as Alloc_mode.For_applications.t and Alloc_mode.For_allocations.t.