[PATCH] D19017: [x86, InstCombine] fix masked loads pass-through operand to be a zero vector

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 12 09:17:47 PDT 2016


spatel created this revision.
spatel added reviewers: andreadb, RKSimon, delena.
spatel added a subscriber: llvm-commits.
Herald added a subscriber: mcrosier.

This bug was introduced with:
http://reviews.llvm.org/rL262269

AVX masked loads are specified to set vector lanes to zero when the high bit of the mask element for that lane is zero:
"If the mask is 0, the corresponding data element is set to zero in the load form of these instructions, and unmodified in the store form." --Intel manual



http://reviews.llvm.org/D19017

Files:
  lib/Transforms/InstCombine/InstCombineCalls.cpp
  test/Transforms/InstCombine/x86-masked-memops.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19017.53416.patch
Type: text/x-patch
Size: 6127 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160412/73f6ef8e/attachment.bin>


More information about the llvm-commits mailing list