Skip to content
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

[Arc] Eliminate AllocateState moveBefore/isBeforeInBlock combination #5481

Merged
merged 2 commits into from
Jun 27, 2023

Conversation

TaoBi22
Copy link
Contributor

@TaoBi22 TaoBi22 commented Jun 26, 2023

As mentioned in the removed TODO, AllocateState currently has an expensive combination of moveBefore and isBeforeInBlock calls. This applies a very similar fix to the one used in LowerState to avoid forcing the built in operation ordering to be repeatedly reconstructed.

Copy link
Member

@maerhart maerhart left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!
Should I merge for you?

Copy link
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

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

Very nice, thanks!

@TaoBi22
Copy link
Contributor Author

TaoBi22 commented Jun 27, 2023

Yes please @maerhart!

@maerhart maerhart merged commit 5f97768 into llvm:main Jun 27, 2023
5 checks passed
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.

None yet

3 participants