fix PR6623: when optimizing for size, don't inline memcpy/memsets
authorChris Lattner <sabre@nondot.org>
Mon, 31 May 2010 17:30:14 +0000 (17:30 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 31 May 2010 17:30:14 +0000 (17:30 +0000)
commit6c41ad8c9a93668c481436fc4a5e47e6f14776e7
tree6ea0fee4e685e22e424ddd1c82eba5fb16a3bbb5
parent0ece9a12acd166b937fe615a24ee2135d92d66c1
fix PR6623: when optimizing for size, don't inline memcpy/memsets
that are too large.  This causes the freebsd bootloader to be too
large apparently.

It's unclear if this should be an -Os or -Oz thing.  Thoughts welcome.

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