Fix memcmp code-gen to honor -fno-builtin.
authorBob Wilson <bob.wilson@apple.com>
Fri, 3 Aug 2012 21:26:18 +0000 (21:26 +0000)
committerBob Wilson <bob.wilson@apple.com>
Fri, 3 Aug 2012 21:26:18 +0000 (21:26 +0000)
commit772af92cb16a5e11bd580f576643a6268e8a5bce
tree1203a6feff2d18cf8952074c01ec6c7ca63c97f3
parentb2beac2b9671f7d9773329d62c2821c8ac449ac5
Fix memcmp code-gen to honor -fno-builtin.

I noticed that SelectionDAGBuilder::visitCall was missing a check for memcmp
in TargetLibraryInfo, so that it would use custom code for memcmp calls even
with -fno-builtin.  I also had to add a new -disable-simplify-libcalls option
to llc so that I could write a test for this.

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