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

[SSCP] Handle llvm.lifetime.start/end intrinsic when moving allocas to different AS #911

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

illuhad
Copy link
Collaborator

@illuhad illuhad commented Jan 17, 2023

llvm.lifetime.start/end intrinsics don't like when they depend on address space casts. This can however happen in our Address Space Inference pass, which might move alloca instructions to a different address space.
Preexisting lifetime intrinsics depending on address space casts can cause a compiler crash.
This PR addresses this by removing such intrinsic calls - this is a hotfix, of course the better solution would be to rewrite such intrinsics to refer to the correct address space.

@illuhad illuhad force-pushed the feature/sscp-handle-llvm-lifetime-intrinsic branch from e10a7bc to b0c0287 Compare January 17, 2023 17:05
@illuhad illuhad merged commit 7d340a6 into develop Jan 17, 2023
@illuhad illuhad deleted the feature/sscp-handle-llvm-lifetime-intrinsic branch January 17, 2023 19:24
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

1 participant