Skip to content

[ScalarizeShapes] Fold select.int through cat in shape computations#4513

Open
jtuyls wants to merge 1 commit intollvm:mainfrom
jtuyls:shape-gather-to-size-int
Open

[ScalarizeShapes] Fold select.int through cat in shape computations#4513
jtuyls wants to merge 1 commit intollvm:mainfrom
jtuyls:shape-gather-to-size-int

Conversation

@jtuyls
Copy link
Copy Markdown
Contributor

@jtuyls jtuyls commented Mar 24, 2026

Extend getListFromTensor to recurse into aten.cat operands and add a select.int folding pattern. This resolves shape elements from concat-based shape tensors used by onnx.Reshape lowering.

Extend getListFromTensor to recurse into aten.cat operands and add
a select.int folding pattern. This resolves shape elements from
concat-based shape tensors used by onnx.Reshape lowering.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jtuyls jtuyls requested review from rsuderman and zjgarvey March 24, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant