[X86] Use min/max to optimze unsigend vector comparison on X86
authorJuergen Ributzka <juergen@apple.com>
Tue, 16 Jul 2013 18:20:45 +0000 (18:20 +0000)
committerJuergen Ributzka <juergen@apple.com>
Tue, 16 Jul 2013 18:20:45 +0000 (18:20 +0000)
commitb95e0f6f2f43d2c9ae8dd9407f9216d02fa4c833
treea428edd0ee9d8bb124bd75f325251eab59215d37
parent71981ef040dd94438449aeca726cab5839d8ec3c
[X86] Use min/max to optimze unsigend vector comparison on X86

Use PMIN/PMAX for UGE/ULE vector comparions to reduce the number of required
instructions. This trick also works for UGT/ULT, but there is no advantage in
doing so. It wouldn't reduce the number of instructions and it would actually
reduce performance.

Reviewer: Ben

radar:5972691

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186432 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/vec_setcc.ll [new file with mode: 0644]