Skip to content

[test] Re-enable temporary allocation IRGen testing, separating large allocation testing and making it less brittle #63095

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

Merged
merged 2 commits into from
Jan 23, 2023

Conversation

xwu
Copy link
Collaborator

@xwu xwu commented Jan 18, 2023

As per the bots, zeroext isn't emitted for all architectures when calling swift_stdlib_isStackAllocationSafe.

Since this very large temporary allocation test is a brittle one, we'll relocate it into a separate file and noodle on it there, and we'll keep this test disabled for now with the tracking rdar. This should allow us to re-enable the remaining temporary allocation tests

Once moved to its own file, turns out that a bunch of calls in the very large temporary allocation test are also emitted as tail calls, so we'll also accommodate that change.

Partially resolves rdar104435186.

@xwu
Copy link
Collaborator Author

xwu commented Jan 18, 2023

cc @stephentyrone, @grynspan

@xwu

This comment was marked as outdated.

5 similar comments
@xwu

This comment was marked as outdated.

@xwu

This comment was marked as outdated.

@xwu

This comment was marked as outdated.

@xwu

This comment was marked as outdated.

@xwu
Copy link
Collaborator Author

xwu commented Jan 19, 2023

@swift-ci test

@xwu xwu force-pushed the temporary-allocation-irgen-testing branch from afceb4a to ea6b0fe Compare January 22, 2023 00:48
@xwu xwu force-pushed the temporary-allocation-irgen-testing branch from ea6b0fe to 4dd6e3f Compare January 22, 2023 00:52
@xwu
Copy link
Collaborator Author

xwu commented Jan 22, 2023

@swift-ci test

@xwu xwu requested review from grynspan and ahoppen January 22, 2023 00:55
@xwu xwu changed the title [test] Relocate temporary allocation IRGen testing, re-enable for all architectures, and make it even less brittle [test] Re-enable temporary allocation IRGen testing, separating large allocation testing and making it less brittle Jan 22, 2023
@grynspan
Copy link
Contributor

We should take care not to let this test languish, as it's really important that we get the codegen correct for unsafe allocations. If we start getting bad codegen for whatever reason, there could be serious stability or security implications.

@xwu xwu merged commit 0cd4db5 into swiftlang:main Jan 23, 2023
@xwu xwu deleted the temporary-allocation-irgen-testing branch January 23, 2023 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants