Fix SimplifyLibCalls to transfer attributes from callees rather than
authorDan Gohman <gohman@apple.com>
Sat, 26 Sep 2009 18:10:13 +0000 (18:10 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 26 Sep 2009 18:10:13 +0000 (18:10 +0000)
commit76926b6789e72eb4864dbfc1830b138486281c1d
tree74a99bc12d18a54b448d4bf56a6c6c9fec045afb
parentc70c37794fbff2c615d4f9dc3b6adf9583b855dc
Fix SimplifyLibCalls to transfer attributes from callees rather than
calls, since direct calls don't always reflect the attributes of their
callees.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82867 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SimplifyLibCalls.cpp
test/Transforms/SimplifyLibCalls/pow-to-sqrt.ll