Skip to content

Only apply last use move optimizations to types that actually benefit from them #2041

Description

@marijnh

For types that have no cleanup, they may actually add overhead (allocating a temporary) instead of help.

Activity

  1. ghost assigned on Mar 21, 2012
  2. marijnh commented on Apr 3, 2012

    @marijnh
    ContributorAuthor

    This was misdiagnosed. I was actually already making sure no useless allocing/zeroing happens.

  3. removed their assignment
    on Jun 16, 2014
  4. added a commit that references this issue on Jun 4, 2024
  5. added a commit that references this issue on Apr 16, 2026
  6. added a commit that references this issue on Aug 21, 2026
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 generationC-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions