Skip to content

[Backport to 18] Handle OpVectorShuffle with differing vector sizes #2409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

svenvh
Copy link
Member

@svenvh svenvh commented Mar 6, 2024

The SPIR-V to LLVM conversion would bail out when encountering an OpVectorShuffle whose vector operands differ in size. SPIR-V allows differing vector sizes, but LLVM's shufflevector does not.

Remove the assert and insert an additional shufflevector to align the vector operands when needed.

(cherry picked from commit 3df5e38)

…hronosGroup#2391)

The SPIR-V to LLVM conversion would bail out when encountering an
`OpVectorShuffle` whose vector operands differ in size.  SPIR-V
allows differing vector sizes, but LLVM's `shufflevector` does not.

Remove the assert and insert an additional `shufflevector` to align
the vector operands when needed.

(cherry picked from commit 3df5e38)
@svenvh svenvh merged commit ad99707 into KhronosGroup:llvm_release_180 Mar 6, 2024
@svenvh svenvh deleted the Backport-to-18 branch March 6, 2024 12:21
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