[X86] Update X86InstCombineIntrinsic to use CreateShuffleVector with one vector
authorJuneyoung Lee <aqjune@gmail.com>
Tue, 5 Jan 2021 04:37:53 +0000 (13:37 +0900)
committerJuneyoung Lee <aqjune@gmail.com>
Wed, 6 Jan 2021 02:42:45 +0000 (11:42 +0900)
commit8444a2494d3d58baae373e66f8a7070e03c62cc2
treed6004819498a498197cfdf7262a2258fa405b84d
parent4a8e6ed2f795b78061b02899aed4642bdb9cdc7e
[X86] Update X86InstCombineIntrinsic to use CreateShuffleVector with one vector

This patch updates X86InstCombineIntrinsic.cpp to use the newly updated CreateShuffleVector.

The tests are updated because the updated CreateShuffleVector uses poison value for the second vector.
If I didn't miss something, the masks in the tests are choosing elements from the first vector only; therefore the tests are having equivalent behavior.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D94059
llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
llvm/test/Transforms/InstCombine/X86/x86-avx2-inseltpoison.ll
llvm/test/Transforms/InstCombine/X86/x86-avx2.ll
llvm/test/Transforms/InstCombine/X86/x86-avx512-inseltpoison.ll
llvm/test/Transforms/InstCombine/X86/x86-avx512.ll
llvm/test/Transforms/InstCombine/X86/x86-vector-shifts-inseltpoison.ll
llvm/test/Transforms/InstCombine/X86/x86-vector-shifts.ll
llvm/test/Transforms/InstCombine/X86/x86-vpermil-inseltpoison.ll
llvm/test/Transforms/InstCombine/X86/x86-vpermil.ll