]> granicus.if.org Git - llvm/commit
[AVX-512] If gather mask is all ones, force the input to a zero vector.
authorCraig Topper <craig.topper@gmail.com>
Mon, 13 Mar 2017 18:17:46 +0000 (18:17 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 13 Mar 2017 18:17:46 +0000 (18:17 +0000)
commit131341ea2e091048ad5e5f0a1d75be34447df19f
tree71a63697ca346c0db34c81b294299e3824a7fe79
parent8187a9b9ca0599bba667df456e46cd3ffc4670ed
[AVX-512] If gather mask is all ones, force the input to a zero vector.

We were already forcing undef inputs to become a zero vector, this now catches an all ones mask too.

Ideally we'd use undef and let execution dep fix handle picking the best register/clearance for the undef, but I don't think it can handle the early clobber today.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297651 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/avx512-gather-scatter-intrin.ll