OSDN Git Service

[X86] Correct the MaskVT for avx512 gather/scatter intrinsics to use the min of the...
authorCraig Topper <craig.topper@intel.com>
Wed, 9 Jan 2019 04:21:12 +0000 (04:21 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 9 Jan 2019 04:21:12 +0000 (04:21 +0000)
commit04492321fc57716464312a20ec7ff83631c3ef43
tree9f09a5c241142511b0641c4cb7c006ec813563b7
parentca3d5270844cf978b6859a5541b90f395cddc88d
[X86] Correct the MaskVT for avx512 gather/scatter intrinsics to use the min of the number of index and data elements.

When the result type is v2i64/v2f64 and the index element size is i32, the index vector has two unused elements making the type v4i32. The mask VT should match the number of memory accesses that will be made.

This is consistent with the isel patterns used for the target independent gather/scatter intrinsic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350687 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp