Skip to content

[6.0] LargeTypesReg2Mem: Add a heuristic for C character arrays #72708

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

Conversation

aschwaighofer
Copy link
Contributor

They can lower to a set of i64 registers we consider small but exploded to (manifested as SSA) registers they will cause significant code bloat.

rdar://125265576

Issue: Improve heuristic of large types handling
Risk: Low-Medium. Change to a heuristic
Testing: Tested as part of CI testing

Reviewer: @eeckstein

Cherry-pick from #72694

They can lower to a set of i64 registers we consider small but exploded
to (manifested as SSA) registers they will cause significant code bloat.

rdar://125265576

Issue: Improve heuristic of large types handling
Risk: Low-Medium. Change to a heuristic
Testing: Tested as part of CI testing

Reviewer: @eeckstein

Cherry-pick from pull/72694
@aschwaighofer aschwaighofer requested a review from a team as a code owner March 29, 2024 19:58
@aschwaighofer
Copy link
Contributor Author

@swift-ci test

@aschwaighofer aschwaighofer added the 🍒 release cherry pick Flag: Release branch cherry picks label Apr 1, 2024
@aschwaighofer aschwaighofer merged commit 0e350d8 into swiftlang:release/6.0 Apr 2, 2024
aschwaighofer added a commit to aschwaighofer/swift that referenced this pull request May 14, 2024
…_array_heuristic_6.0"

This reverts commit 0e350d8, reversing
changes made to 1e5659e.

It triggered a bug that needs to be tracked down.

rdar://128019015
aschwaighofer added a commit that referenced this pull request May 14, 2024
[6.0] Revert "Merge pull request #72708 from aschwaighofer/c_array_heuristic_6.0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants