move an optimization for memcmp out of simplifylibcalls and into
authorChris Lattner <sabre@nondot.org>
Thu, 24 Dec 2009 00:37:38 +0000 (00:37 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 24 Dec 2009 00:37:38 +0000 (00:37 +0000)
commit8047d9a6be9c6261c4d3f286786be856d619ed0f
treee776a41a241dfd104c9d5f49d28f5cbd5bfb5ab9
parent465e2b950d61c870fb3120c80191973e8282a3ef
move an optimization for memcmp out of simplifylibcalls and into
SDISel.  This optimization was causing simplifylibcalls to
introduce type-unsafe nastiness.  This is the first step, I'll be
expanding the memcmp optimizations shortly, covering things that
we really really wouldn't want simplifylibcalls to do.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92098 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
lib/Transforms/Scalar/SimplifyLibCalls.cpp
test/CodeGen/X86/memcmp.ll [new file with mode: 0644]
test/Transforms/SimplifyLibCalls/memcmp.ll