[PATCH] D30686: [SLP] PR32078: convert scalar operations to vector.
Alexey Bataev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 7 01:38:23 PST 2017
ABataev created this revision.
If we have a code like:
%xn = extractelement <2 x i32> %x, i32 %n
%yn = extractelement <2 x i32> %y, i32 %n
%cmpn = icmp eq i32 %xn, %yn
we can convert it to something like this:
%cmp = icmp eq <2 x i32> %x, %y
%cmpn = extractelement <2 x i1> %cmp0, i32 %n
if the cost of the second is less than the cost of the original code.
https://reviews.llvm.org/D30686
Files:
lib/Transforms/Vectorize/SLPVectorizer.cpp
test/Transforms/SLPVectorizer/X86/vector.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30686.90817.patch
Type: text/x-patch
Size: 26437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170307/4c876115/attachment.bin>
More information about the llvm-commits
mailing list