-
Notifications
You must be signed in to change notification settings - Fork 109
BE-223: HashQL: Fix SSA repair to handle existing block parameters #8136
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
indietyp
merged 2 commits into
main
from
bm/be-223-hashql-fix-order-of-operations-in-ssa-rename-pass
Dec 1, 2025
Merged
BE-223: HashQL: Fix SSA repair to handle existing block parameters #8136
indietyp
merged 2 commits into
main
from
bm/be-223-hashql-fix-order-of-operations-in-ssa-rename-pass
Dec 1, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Nov 30, 2025
Member
Author
3 tasks
52a95f7 to
9bcc313
Compare
9058cd8 to
1b3b01b
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## graphite-base/8136 #8136 +/- ##
======================================================
+ Coverage 57.80% 57.83% +0.02%
======================================================
Files 1166 1166
Lines 109121 109179 +58
Branches 4963 4965 +2
======================================================
+ Hits 63081 63139 +58
- Misses 45306 45307 +1
+ Partials 734 733 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
TimDiekmann
approved these changes
Dec 1, 2025
aa93afe to
8c8fd79
Compare
1b3b01b to
30dd4a0
Compare
Contributor
Merge activity
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/libs
Relates to first-party libraries/crates/packages (area)
area/tests
New or updated tests
type/eng > backend
Owned by the @backend team
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

🌟 What is the purpose of this PR?
Fix SSA repair to handle reassignment of variables in the same block correctly. This PR addresses an issue where the SSA repair pass wasn't properly handling cases where a variable is reassigned within the same block before being used as a block parameter.
🔍 What does this change?
Existingvariant toFindDefFromTopenum to handle cases where a reaching definition is already present in block parametersSsaViolationRepairto check if a local declaration already exists for block parameters before creating a new onereassign_rodeoto verify the fix works correctlyPre-Merge Checklist 🚀
🚢 Has this modified a publishable library?
This PR:
📜 Does this require a change to the docs?
The changes in this PR:
🕸️ Does this require a change to the Turbo Graph?
The changes in this PR:
🛡 What tests cover this?
reassign_rodeothat specifically tests the fixed behavior