-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
AutoDiffSILOptimizerArea → compiler: SIL optimization passesArea → compiler: SIL optimization passesbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Description
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
Labels
AutoDiffSILOptimizerArea → compiler: SIL optimization passesArea → compiler: SIL optimization passesbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.