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

disable tail call on return values of MInt of >192 bits #1135

Merged
merged 4 commits into from
Aug 20, 2024
Merged

Conversation

dwightguth
Copy link
Collaborator

On X86 architecture, LLVM can only return integers of size up to 192 bits in registers. Return values of greater size are subject to "sret demotion", which returns the value in memory. Due to the sret implied by this, tail calls cannot be performed on functions that return these large integer types. Thus, we need to delete the MustTail attribute or code generation will crash.

@rv-jenkins rv-jenkins changed the base branch from master to develop August 16, 2024 17:37
@dwightguth dwightguth marked this pull request as ready for review August 19, 2024 18:43
Copy link
Collaborator

@theo25 theo25 left a comment

Choose a reason for hiding this comment

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

I am approving but mayI ask that you add the k file for the new test you added?

@dwightguth dwightguth merged commit 656bde0 into develop Aug 20, 2024
10 checks passed
@dwightguth dwightguth deleted the mint branch August 20, 2024 15:29
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