[PATCH] D23347: [AVX512] Fix insertelement i1 lowering.
Igor Breger via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 10 02:45:56 PDT 2016
igorb created this revision.
igorb added a reviewer: delena.
igorb added a subscriber: llvm-commits.
igorb set the repository for this revision to rL LLVM.
[AVX512] Fix insertelement i1 lowering.
1 . Use shuffle to insert element i1 into vector. The previous implementation was incorrect ( dest_bit OR src_bit , it doesn't clear the bit if src_bit=0 )
2. Improve shuffle i1 vector, use CVT2MASK if supported instead TRUNCATE.
Repository:
rL LLVM
https://reviews.llvm.org/D23347
Files:
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/avx512-ext.ll
test/CodeGen/X86/avx512-insert-extract.ll
test/CodeGen/X86/avx512-mask-op.ll
test/CodeGen/X86/avx512-skx-insert-subvec.ll
test/CodeGen/X86/vector-shuffle-v1.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23347.67491.patch
Type: text/x-patch
Size: 21381 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160810/e431b1a6/attachment-0001.bin>
More information about the llvm-commits
mailing list