Skip to content

Conversation

joeamroo
Copy link

Documents how ClangIR handles vec3 array element loads using the vec3->vec4 optimization for aligned memory access. The test shows the pointer cast to vec4, load as vec4, and shuffle back to vec3 pattern in both CIR and LLVM IR.

Closes #685

)

Documents how ClangIR handles vec3 array element loads using the
vec3->vec4 optimization for aligned memory access. The test shows
the pointer cast to vec4, load as vec4, and shuffle back to vec3
pattern in both CIR and LLVM IR.

Closes llvm#685
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.

Add a test for arrays of 3-component extended vectors

1 participant