Skip to content

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.

4 participants