OSDN Git Service

Optimize printf -> iprintf if there are no floating point arguments
authorRichard Osborne <richard@xmos.com>
Thu, 3 Mar 2011 13:17:51 +0000 (13:17 +0000)
committerRichard Osborne <richard@xmos.com>
Thu, 3 Mar 2011 13:17:51 +0000 (13:17 +0000)
commit3649824bec09768cbdee7aa7cfbbcdd865373626
treeaa1aee521af7f6df2bab2c11622fe94c257c6070
parent49d7999b89759a1b58180fec9c491ba05204c95c
Optimize printf -> iprintf if there are no floating point arguments
and iprintf is available on the target. Currently iprintf is only
marked as being available on the XCore.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126935 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLibraryInfo.h
lib/Target/TargetLibraryInfo.cpp
lib/Transforms/Scalar/SimplifyLibCalls.cpp
test/Transforms/SimplifyLibCalls/iprintf.ll [new file with mode: 0644]