[X86]Fix a crash trying to convert indices to proper type.
authorAlexey Bataev <a.bataev@outlook.com>
Tue, 4 May 2021 14:48:06 +0000 (07:48 -0700)
committerAlexey Bataev <a.bataev@outlook.com>
Wed, 5 May 2021 12:14:42 +0000 (05:14 -0700)
commit13a51e017c09ce449ba2ec0024baf356d6dfcbad
tree4e2a5e00b6528a02e2bb06d8ee301da9535da6b0
parent62851ea7ea2ca59766daab878c5c68629734cb4d
[X86]Fix a crash trying to convert indices to proper type.

Need to perfortm a bitcast on IndicesVec rather than subvector extract
if the original size of the IndicesVec is the same as the size of the
  destination type.

Differential Revision: https://reviews.llvm.org/D101838
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/var-permute-128.ll