-
Notifications
You must be signed in to change notification settings - Fork 110
BE-270: HashQL: Optimize empty tuples to unit constants in MIR #8237
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
BE-270: HashQL: Optimize empty tuples to unit constants in MIR #8237
Conversation
PR SummaryIntroduces unit-aware handling across MIR building and simplification.
Written by Cursor Bugbot for commit f0ef5be. This will update automatically on new commits. Configure here. |
🤖 Augment PR SummarySummary: Canonicalizes empty tuple construction in HashQL MIR and optimizes it into unit ( Changes:
Technical Notes: This makes unit values flow as constants earlier, reducing MIR noise and improving downstream pass stability. 🤖 Was this summary useful? React with 👍 or 👎 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review completed. No suggestions at this time.
Comment augment review to trigger a new review at any time.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8237 +/- ##
=======================================
Coverage 59.72% 59.73%
=======================================
Files 1214 1214
Lines 115245 115275 +30
Branches 5062 5063 +1
=======================================
+ Hits 68832 68861 +29
- Misses 45611 45612 +1
Partials 802 802
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:
|
f169485 to
d9a54d7
Compare
ebf1893 to
1046b08
Compare
d9a54d7 to
20c52d2
Compare
1046b08 to
01aa550
Compare
20c52d2 to
c3200c0
Compare
01aa550 to
8002918
Compare
8002918 to
f0ef5be
Compare
c3200c0 to
7e32c71
Compare
f0ef5be to
50abe89
Compare
Merge activity
|

🌟 What is the purpose of this PR?
This PR optimizes empty tuple handling in the MIR by simplifying empty tuple aggregates to unit constants and fixing tuple type handling in the body builder macro.
🔍 What does this change?
From<!>implementation forOperand<'_>to support empty tuplesPre-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?
empty_tuple_to_unit()to verify the optimization❓ How to test this?