Skip to content

mark & pointers to Freeze objects as llvm.invariant #6351

Closed
@thestinger

Description

@thestinger

Const objects are immutable or can be statically frozen, so this is a safe optimization for all safe code and correct unsafe code. However, there may objects violating the mutability rules with unsafe and requiring #[mutable].

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