-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[AutoDiff] Simplify varied propagation in activity analysis. #28191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AutoDiff] Simplify varied propagation in activity analysis. #28191
Conversation
- Remove `setVaried`. - `setVaried` has only one user and can be inlined. - Remove `setVariedAcrossArrayInitialization`. - Activity info does not change when removing special variedness propagation support for `array.uninitialized_intrinsic` applications. - Verified with array initialization activity info test case.
@swift-ci Please test tensorflow |
Could you please add a test to make sure this still holds true for indirectly initialized array literals? Indirectness should always be considered in these sorts of test cases. func testArrayUninitializedIntrinsic<T>(_ x: T, _ y: T) -> [T] {
return [x, y]
} |
…pplication. Remove unused comments.
Done in 05122fb. Verified that activity info for There already exist runtime tests for |
@swift-ci Please test tensorflow |
Great. To throw another example here: Consider testing an indirect type (e.g. |
No activity analysis test added because activity info for the `array.uninitialized_intrinsic` application is the same.
Added an "indirect I didn't add a corresponding activity analysis test because activity info around the
|
@swift-ci Please test tensorflow |
- Remove `setVaried`. - `setVaried` has only one user and can be inlined. - Remove `setVariedAcrossArrayInitialization`. - Activity info does not change when removing special variedness propagation support for `array.uninitialized_intrinsic` applications. - Verified with array initialization activity info test cases. - Add indirect `ExpressibleByArrayLiteral` test.
setVaried
.setVaried
has only one user and can be inlined. Addresses feedback from @marcrasi.setVariedAcrossArrayInitialization
.support for
array.uninitialized_intrinsic
applications.