Skip to content

Try to reuse cleanup code when appropriate #300

Closed

Description

@marijnh

Each ret, break. cont, and maybe others, currently outputs it own block-unwind-cleanup code. A block (or nested set of blocks) which requires non-trivial cleanup code, having a bunch of rets/breaks in it will cause way too much repetitive code to be generated. The compiler will eventually have to notice this situation and somehow centralize the cleanup code.

Activity

  1. brson commented on Oct 12, 2011

    @brson
    Contributor

    This problem has been greatly compounded by unwinding.

  2. ghost assigned on Feb 15, 2012
  3. removed their assignment
    on Jun 16, 2014
  4. added a commit that references this issue on Sep 19, 2017
  5. added a commit that references this issue on Dec 12, 2017
  6. added a commit that references this issue on Mar 7, 2023
  7. added a commit that references this issue on May 10, 2023
  8. added 2 commits that reference this issue on Aug 21, 2026
    792dabc
    d77520f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationI-slowIssue: Problems and improvements with respect to performance of generated code.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions