Factor the profitability check for return slot optimization out into a static function.
authorOwen Anderson <resistor@mac.com>
Tue, 19 Feb 2008 03:27:34 +0000 (03:27 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 19 Feb 2008 03:27:34 +0000 (03:27 +0000)
commitfa113f815513414a874c5801a5b4dc0ef7dfe8ef
tree1305d3a76590fd339ca2946835ef1f8aa894f2be
parentc0755a6f984f17c269c2a7a4b48c74d201403c9b
Factor the profitability check for return slot optimization out into a static function.
At some point in the future, this check will become smarter.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47310 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/GVN.cpp