Skip to content

Can not deduce type of copy. #2480

@ZuseZ4

Description

@ZuseZ4

This IR is just what we output from rustc, before running any optimizations. So that's the only location where we can reasonably add typetrees.

https://fwd.gymni.ch/vHLgRl (failing due to unrelated ssues) - it seems the link broke?

In a previous typetree prototype we used to generate typetrees at mem* operations, but they never had any measurable impact.
The memcpy operations failing due to a lack of type information seem to be generated later, maybe during enzyme's preprocessing?
If you manually add typetree at (hopefully not too many) locations, I can try to automate that from rustc.

@wsmoses

dbg_mod.ll.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions