Skip to content

Conversation

@tyb0807
Copy link
Contributor

@tyb0807 tyb0807 commented Dec 23, 2025

…mentsPerThread

The ReadOpLoweringPattern was assuming ReadOp results are always WaveTensorType that need conversion to VectorType. However, after PropagateElementsPerThread pass runs, ReadOp results are already converted to VectorType.

This fix detects if the result is already a vector type and uses it directly, otherwise falls back to the original type conversion logic.

@tyb0807 tyb0807 requested a review from ftynse December 23, 2025 23:09
…mentsPerThread

The ReadOpLoweringPattern was assuming ReadOp results are always WaveTensorType
that need conversion to VectorType. However, after PropagateElementsPerThread
pass runs, ReadOp results are already converted to VectorType.

This fix detects if the result is already a vector type and uses it directly,
otherwise falls back to the original type conversion logic.

Signed-off-by: tyb0807 <[email protected]>
@tyb0807 tyb0807 force-pushed the fix-readop-vector-handling branch from 9d62cf6 to 3a96ddc Compare December 23, 2025 23:23
Copy link
Contributor

@ftynse ftynse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, maybe we should just reject non-vector types here and expect the propagation to have run.

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.

2 participants