BE-270: HashQL: Optimize empty tuples to unit constants in MIR#8237
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 👎 |
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:
|
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?