Repository navigation
[dslx] Improve lowering of one_hot_sel and priority_sel builtins - #4176
Merged
copybara-service[bot] merged 1 commit intoNov 18, 2026
Merged
Conversation
Member
|
@richmckeever @erinzmoore @dplassgit can one of you take a look? |
dplassgit
approved these changes
May 26, 2026
Contributor
|
Poking this to see why it seems stuck. |
ericastor
approved these changes
May 29, 2026
ericastor
reviewed
May 29, 2026
cdleary
force-pushed
the
cdleary/2026-04-28-ohs-lowering
branch
from
November 3, 2026 05:01
7501ee7 to
870aaf1
Compare
grebe
approved these changes
Nov 9, 2026
Contributor
|
Can you rebase on HEAD? I didn't realize this failed to submit b/c out of date files. |
Inline array literals passed to one_hot_sel and priority_sel can already be scalarized directly during IR conversion. Do that before generic argument lowering so no-opt IR does not materialize a temporary array and then recover its members with constant array_index nodes. Keep the existing array-index fallback for non-literal case expressions, and preserve ellipsis expansion for literal arrays.
cdleary
force-pushed
the
cdleary/2026-04-28-ohs-lowering
branch
from
November 14, 2026 03:43
870aaf1 to
a163a96
Compare
Collaborator
Author
|
@grebe Rebased onto upstream |
grebe
approved these changes
Nov 17, 2026
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.
Inline array literals passed to one_hot_sel and priority_sel can already be scalarized directly during IR conversion. Do that before generic argument lowering so no-opt IR does not materialize a temporary array and then recover its members with constant array_index nodes.
Keep the existing array-index fallback for non-literal case expressions, and preserve ellipsis expansion for literal arrays.