Skip to content

Aliasing hints are based on AST types, but should be based on monormorphized ty::t #7260

Closed
@nikomatsakis

Description

@nikomatsakis

We have some simple hints to detect when ~T pointers are passed and tell LLVM they are unique. These hints should be based on the monomorphized ty::t, but they are currently based on the AST. This isn't wrong, it just misses optimization opportunities.

See FIXME.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions