fix PR36582

The error occurs when reading i16 elements (as in the testcase) from a v8i8
with a pattern of <0,2,4,6>. As all the data in the vector is accessed, the
operation is not a VUZP. The patch stops the pattern recognition of VUZP when
EXTRACT_VECTOR_ELT has a different element type than BUILD_VECTOR.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326722 91177308-0d34-0410-b5e6-96231b3b80d8
2 files changed