[PATCH] D30865: [AVX-512] If gather mask is all ones, use UNDEF for the source

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 11 09:32:44 PST 2017


craig.topper created this revision.

If mask is all ones we aren't going to keep any elements so we don't need a source. Currently we make sure we always have a source and even force the source to zero if it is received as undef.

This patch detects the all ones mask and forces the source to undef.


https://reviews.llvm.org/D30865

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/avx512-gather-scatter-intrin.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30865.91475.patch
Type: text/x-patch
Size: 9792 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170311/fb939eea/attachment.bin>


More information about the llvm-commits mailing list