Skip to content

Polls in loops can create control flow invisible at the Flambda level #568

Description

@lthls

I'm creating an issue corresponding to ocaml#10520 in the upstream compiler.
Flambda would be allowed to do the same optimisations that Deadcode does, removing the initialisation step for mutable variables that are always assigned to before being read. If a poll is later inserted in the loop, this could introduce a path where the initialisation step becomes necessary again.

This is not a problem now, but will become one when we rebase on 4.13.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions