feat(opt): ægraph i64 ops + 8 new identity rules + commutativity helpers (v1.1.0 Track C)#137
Merged
Merged
Conversation
…ers (v1.1.0 Track C, rebased) Track C's content rebased onto post-Track-B main. Track B's cost-driven extract is preserved (it's already merged on main as PR #134); this PR adds i64 op variants + 8 i64 identity rules + commutativity helpers on top. ## What lands 11 new Op variants: I64Add/Sub/Mul/And/Or/Xor/Shl/ShrS/ShrU/Eq/Eqz. 8 new identity rules (i64 add/or/and/mul/xor + 3 shift-by-zero). Op::is_commutative() + EGraph::canonicalize_commutative() helpers. ## Tests 25 egraph tests pass (was 18 after Track B). 1 ignored (commutativity end-to-end — needs insertion-time normalization, v1.1.1). Trace: REQ-3
6 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Rebased version of the v1.1.0 Track C agent's work onto post-Track-B main.
25 egraph tests pass. 1 ignored (commutativity end-to-end, v1.1.1 follow-up — needs insertion-time normalization).
🤖 Generated with Claude Code