Optimize sprintf -> siprintf if there are no floating point arguments
authorRichard Osborne <richard@xmos.com>
Thu, 3 Mar 2011 14:09:28 +0000 (14:09 +0000)
committerRichard Osborne <richard@xmos.com>
Thu, 3 Mar 2011 14:09:28 +0000 (14:09 +0000)
commit419454ad3720b8cf4613d9e790669c8beaccd1a4
tree4a708cde9e05335c87db1a4b789f94010d66a077
parent12785e87e88309c1934add000b754eba51a6c391
Optimize sprintf -> siprintf if there are no floating point arguments
and siprintf is available on the target.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126937 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLibraryInfo.h
lib/Target/TargetLibraryInfo.cpp
lib/Transforms/Scalar/SimplifyLibCalls.cpp
test/Transforms/SimplifyLibCalls/iprintf.ll