[PATCH] D38697: [SLP] Fix for PR32086: Count InsertElementInstr of the same elements as shuffle.
Alexey Bataev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 9 11:27:00 PDT 2017
ABataev created this revision.
If the same value is going to be vectorized several times in the same
tree entry, this entry is considered to be a gather entry and cost of
this gather is counter as cost of InsertElementInstrs for each gathered
value. But we can consider these elements as ShuffleInstr with
SK_PermuteSingle shuffle kind.
https://reviews.llvm.org/D38697
Files:
lib/Transforms/Vectorize/SLPVectorizer.cpp
test/Transforms/SLPVectorizer/X86/PR32086.ll
test/Transforms/SLPVectorizer/X86/blending-shuffle.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38697.118241.patch
Type: text/x-patch
Size: 36392 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171009/2ff4fcbe/attachment.bin>
More information about the llvm-commits
mailing list