Skip to content

Get rid of specialized pullback generation for semantic member accessors #67388

@asl

Description

@asl

Currently there is a special path for semantic member accessors pullback generation (getters and setters). Maybe I am missing something, but this should not be required at all and generic pullback generation code should handle these functions just fine.

It did make a bit sense in the past when there was no support for inout arguments, so setters would certainly should be special-cased. I do not see any obvious reason why getters are special.

Anyway, if we'd remove the special case generation we're having few assertions failures. I believe this should be considered as as a bug, investigated and fixed. Ultimately, the generic code should handle pullback generation for semantic member accessors as-is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AutoDiffSILOptimizerArea → compiler: SIL optimization passesbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions