[SLP][NFC] Precommit test that exposes a bug in ShuffleBuilder.
authorVasileios Porpodas <vporpodas@google.com>
Tue, 13 Jun 2023 19:39:23 +0000 (12:39 -0700)
committerVasileios Porpodas <vporpodas@google.com>
Tue, 13 Jun 2023 23:52:36 +0000 (16:52 -0700)
commit9d5466849a770eeab222d5a5890376d3596e8ad6
tree6f058b4e05b2ae34a1a720adbae47ad547b5c320
parentbed6a6e7e06bd3a5a5af15d7a6935d3ba2dc0da4
[SLP][NFC] Precommit test that exposes a bug in ShuffleBuilder.

ShuffleBuilder generates a zero mask here:
`[[TMP6:%.*]] = shufflevector <2 x float> [[TMP3]], <2 x float> poison, <4 x i32> zeroinitializer`
But the correct mask is `0,0,1,1`, or we should have reused `TMP4`.

Differential Revision: https://reviews.llvm.org/D152868
llvm/test/Transforms/SLPVectorizer/X86/shufflebuilder-bug.ll [new file with mode: 0644]