Skip to content

intrinsics for trivial functions #8648

Closed
@graydon

Description

@graydon

In particular:

  • incrementing a pointer (ptr::offset)
  • Casting a pointer (cast::transmute)
  • Possibly: running drop glue (cast::forget)

It's worth measuring to be sure but I believe the amount of code we generate to call the numerous monomorphic instances of these functions may be substantial. Moving the "intrinsic" recognition-point up just a touch might be worthwhile, though this is (as @pcwalton points out) a slippery slope that leads towards ever more ambitious "optimization in the frontend".

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