implement axes_scan's broadcast semantics via dce - #5540
Merged
Conversation
mattjj
force-pushed
the
broadcast-via-dce
branch
2 times, most recently
from
July 29, 2026 21:05
e8ad4f5 to
2ed9d01
Compare
By using DCE instead of partial evaluation, we unblock JAX_REMAT3=1 and the deletion of general partial eval in JAX. (A JAX version skew issue: in the newest (unreleased) JAX, consts are just leading invars. So we don't switch on len(consts).)
mattjj
force-pushed
the
broadcast-via-dce
branch
from
July 29, 2026 21:47
2ed9d01 to
ba90558
Compare
cgarciae
approved these changes
Jul 29, 2026
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.
By using DCE instead of partial evaluation, we unblock JAX_REMAT3=1 and the deletion of general partial eval in JAX.
Drive-by fix of a separate issue in how debug_info was being created (don't pass in_tree, pass args). That should improve some error messages.