handle equality memcmp of 8 bytes on x86-64 with two unaligned loads and a
authorChris Lattner <sabre@nondot.org>
Thu, 24 Dec 2009 01:07:17 +0000 (01:07 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 24 Dec 2009 01:07:17 +0000 (01:07 +0000)
commit04b091a7822c60512285ee66b058f98399bf1cf9
tree2898e7bc54044d523c88070d7e14ea1c7eb91ed3
parent7ed6dd61ac904f6a50318f557ac0f389a4dbf6a9
handle equality memcmp of 8 bytes on x86-64 with two unaligned loads and a
compare.  On other targets we end up with a call to memcmp because we don't
want 16 individual byte loads.  We should be able to use movups as well, but
we're failing to select the generated icmp.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92107 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
test/CodeGen/X86/memcmp.ll