Skip to content

AllocStackHoisting: fix a quadratic complexity bug when merging stack locations. #68139

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
Aug 25, 2023

Conversation

eeckstein
Copy link
Contributor

Use consecutive instruction indices to check for overlapping instead of iterating over the instruction list.

This fixes a compile time problem which shows up if there are many stack locations in a large basic block.

rdar://113207176

… locations.

Use consecutive instruction numbers to check for overlapping instead of iterating over the instruction list.

This fixes a compile time problem which shows up if there are many stack locations in a large basic block.

rdar://113207176
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein merged commit f61bd58 into swiftlang:main Aug 25, 2023
@eeckstein eeckstein deleted the fix-alloc-stack-hoisting branch August 25, 2023 14:39
@eeckstein eeckstein requested a review from atrick August 25, 2023 15:10
Copy link
Contributor

@atrick atrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed for CCC. Looks perfect!

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