[PATCH] D32093: [InstCombine] PR32078: convert scalar operations to vector.
Alexey Bataev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 14 11:57:02 PDT 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
https://reviews.llvm.org/D32093
Files:
lib/Transforms/InstCombine/InstCombineAddSub.cpp
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
lib/Transforms/InstCombine/InstCombineCompares.cpp
lib/Transforms/InstCombine/InstCombineInternal.h
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
lib/Transforms/InstCombine/InstCombinePHI.cpp
lib/Transforms/InstCombine/InstCombineShifts.cpp
lib/Transforms/InstCombine/InstructionCombining.cpp
test/Transforms/InstCombine/bitcast-bigendian.ll
test/Transforms/InstCombine/bitcast.ll
test/Transforms/InstCombine/type_pun.ll
test/Transforms/InstCombine/x86-avx512.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32093.95331.patch
Type: text/x-patch
Size: 33138 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170414/a6bbb292/attachment-0001.bin>
More information about the llvm-commits
mailing list