-
Notifications
You must be signed in to change notification settings - Fork 110
BE-197: Implement MIR inline pass for HashQL #8236
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
Conversation
08c3e40 to
f088349
Compare
d9a54d7 to
20c52d2
Compare
| "lint:clippy": "just clippy", | ||
| "test:codspeed": "cargo codspeed run -p hashql-core", | ||
| "test:miri": "cargo miri nextest run -- co_sort try_scan heap::transfer stable_empty_slice", | ||
| "test:miri": "cargo miri nextest run -- co_sort try_scan heap::transfer stable_empty_slice id::slice tarjan::tests::members", |
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.
I wonder if we just generally run Miri on all tests
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.
i can give it a try next time, I didnt because of the time it takes to run, but let me check if that is still true
20c52d2 to
c3200c0
Compare
f088349 to
427eda4
Compare
c3200c0 to
7e32c71
Compare
427eda4 to
c1ba012
Compare
🌟 What is the purpose of this PR?
Implements a function inlining pass for HashQL's MIR (Mid-level Intermediate Representation). The pass reduces function call overhead and enables further optimizations by replacing call sites with the callee's body. It uses a two-phase approach: heuristic-based normal inlining followed by aggressive inlining for filter closures in graph read pipelines.
🔍 What does this change?
Pre-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: