Skip to content

Avoid monomorphizing intrinsic fallback bodies that the backend does not need #149945

@RalfJung

Description

@RalfJung

Currently, when an intrinsic with a fallback body gets used, we always monomorphize and codegen that body: mono item collection does not know whether the backend will invoke the fallback body or supply its own implementation. This has led to perf regressions in #148478 and possibly elsewhere.

It would be better if the backend could inform mono item collection about intrinsics it will overwrite anyway, so that we can avoid codegen'ing those.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-compiletimeIssue: Problems and improvements with respect to compile times.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions