llvm-project
7a7f9190 - [SandboxVec][Legality] Fix mask on diamond reuse with shuffle (#126963)

Commit
228 days ago
[SandboxVec][Legality] Fix mask on diamond reuse with shuffle (#126963) This patch fixes a bug in the creation of shuffle masks when vectorizing vectors in case of a diamond reuse with shuffle. The mask needs to enumerate all elements of a vector, not treat the original vector value as a single element. That is: if vectorizing two <2 x float> vectors into a <4 x float> the mask needs to have 4 indices, not just 2.
Author
vporpo
Parents
Loading