Skip to content

[MLIR][XeGPU] Honor convert_layout's input_layout when resolving layout conflict#194935

Draft
nbpatel wants to merge 1 commit intollvm:mainfrom
nbpatel:xegpu-propagate-bridge-mismatch
Draft

[MLIR][XeGPU] Honor convert_layout's input_layout when resolving layout conflict#194935
nbpatel wants to merge 1 commit intollvm:mainfrom
nbpatel:xegpu-propagate-bridge-mismatch

Conversation

@nbpatel
Copy link
Copy Markdown
Contributor

@nbpatel nbpatel commented Apr 29, 2026

This PR changes getConsumerLayoutAt now to return the input_layout attribute directly when the consuming op is xegpu.convert_layout, since its required operand layout is explicitly declared rather than inferable from the result. This lets ResolveLayoutConflicts detect a real mismatch against the producer's layout and insert a bridging convert_layout, instead of being masked by the fallback that returned the producer's own layout.

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