Skip to content

mark borrowed pointer parameters without a named lifetime as nocapture #6751

Closed
@thestinger

Description

@thestinger

From the LLVM documentation:

nocapture
This indicates that the callee does not make any copies of the pointer that outlive the callee itself. This is not a valid attribute for return values.

@nikomatsakis: is this a sane optimization? it seems so

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-lifetimesArea: Lifetimes / regionsI-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