-
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
base: bm/be-197-hashql-implement-inlining
Are you sure you want to change the base?
BE-270: HashQL: Optimize empty tuples to unit constants in MIR #8237
Conversation
PR SummaryIntroduces canonical handling of empty tuples as unit across MIR construction and optimization.
Written by Cursor Bugbot for commit a01405e. 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 @@
## bm/be-197-hashql-implement-inlining #8237 +/- ##
=======================================================================
+ Coverage 64.93% 64.94% +0.01%
=======================================================================
Files 735 735
Lines 62952 62982 +30
Branches 3676 3677 +1
=======================================================================
+ Hits 40877 40906 +29
- Misses 21596 21597 +1
Partials 479 479
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:
|
CodSpeed Performance ReportMerging #8237 will not alter performanceComparing Summary
|

🌟 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?