Skip to content

[🍒 swift/release/6.1] [llvm][AArch64] Fix a crash in performPostLD1Combine #9701

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 1 commit into from
Dec 19, 2024

Conversation

jroelofs
Copy link

@jroelofs jroelofs commented Dec 6, 2024

Cherry-pick of llvm#118538

The combine was attempting to replace a load that already had index writeback, resulting in an incorrect CombineTo, which would have changed the number of SDValue results of the instruction. The fix is to skip forming the LD1 combine when the load is already an indexed one.

• Risk: Low, this change turns an assertion failure / crash into a skipped optimization.
• Testing: Updated regression tests
• Reviewed by: @aemerson
• Original PR: llvm#118538
• Radar: rdar://138004275

rdar://138004275
(cherry picked from commit b61d3cc)
@jroelofs jroelofs requested a review from a team as a code owner December 6, 2024 17:32
@jroelofs
Copy link
Author

jroelofs commented Dec 6, 2024

@swift-ci test

@jroelofs
Copy link
Author

jroelofs commented Dec 6, 2024

@swift-ci test windows

@jroelofs jroelofs changed the title Jroelofs/6.1 cherrypicks [🍒 swift/release/6.1] [llvm][AArch64] Fix a crash in performPostLD1Combine and [Clang] SemaFunctionEffects: Fix bug where lambdas produced by ... Dec 6, 2024
@jroelofs
Copy link
Author

jroelofs commented Dec 6, 2024

@swift-ci test linux

@jroelofs
Copy link
Author

@swift-ci test windows

@jroelofs jroelofs force-pushed the jroelofs/6.1-cherrypicks branch from eb25d1e to 0dbf825 Compare December 12, 2024 16:55
@jroelofs
Copy link
Author

@swift-ci test

@jroelofs
Copy link
Author

@swift-ci test windows

@jroelofs jroelofs changed the title [🍒 swift/release/6.1] [llvm][AArch64] Fix a crash in performPostLD1Combine and [Clang] SemaFunctionEffects: Fix bug where lambdas produced by ... [🍒 swift/release/6.1] [llvm][AArch64] Fix a crash in performPostLD1Combine Dec 12, 2024
@jroelofs
Copy link
Author

@swift-ci test macos

@tbkka tbkka merged commit 380d817 into swift/release/6.1 Dec 19, 2024
3 checks passed
@tbkka tbkka deleted the jroelofs/6.1-cherrypicks branch December 19, 2024 00:09
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.

3 participants