[X86][AVX] createVariablePermute - correctly extend same-sized-vector indices (PR50356)
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 18 May 2021 19:25:42 +0000 (20:25 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 18 May 2021 19:30:46 +0000 (20:30 +0100)
commitd0902a8665b1e158fb78df7fc5008e3af862939c
tree49e55fc1d344b64be54300d7fe47ff55db55ca99
parent45b7cf995551a0c0743e5d69f611bba7e4072ddf
[X86][AVX] createVariablePermute - correctly extend same-sized-vector indices (PR50356)

D101838 incorrectly handled indices vectors of the same size but with higher element counts to just bitcast to the target indices type instead of performing a ZERO_EXTEND_VECTOR_INREG
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/var-permute-128.ll
llvm/test/CodeGen/X86/var-permute-256.ll