Skip to content

PointerPasses: only delete operand when it is safe #291

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
Apr 4, 2025

Conversation

Maqrkk
Copy link
Member

@Maqrkk Maqrkk commented Apr 4, 2025

The deleteInstructionAndUnusedOperands function would unconditionally delete instructions if they only had one use, that use being the instruction that was being deleted by the pass. Now There is a check to prevent instructions with side effects from being removed.

The deleteInstructionAndUnusedOperands function would unconditionally delete instructions if they only had one use, that use being the instruction that was being deleted by the pass. Now There is a check to prevent instructions with side effects from being removed.
@Maqrkk Maqrkk requested a review from yuri91 April 4, 2025 12:29
@alexp-sssup alexp-sssup merged commit 9d1f8e8 into master Apr 4, 2025
1 check 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.

2 participants