diff options
author | Richard Osborne <richard@xmos.com> | 2011-03-03 14:20:22 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2011-03-03 14:20:22 +0000 |
commit | 022708f221e2a9ea1a42c07c7cd7817a8de881dc (patch) | |
tree | f58670ec50e609c0e8c61d41c546550778ec7d5e /lib/Target | |
parent | 43b4e23bac43845e519e46e2a050eb907257ae9f (diff) |
Optimize fprintf -> iprintf 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@126940 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/TargetLibraryInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/TargetLibraryInfo.cpp b/lib/Target/TargetLibraryInfo.cpp index 345d914a58..90ea343322 100644 --- a/lib/Target/TargetLibraryInfo.cpp +++ b/lib/Target/TargetLibraryInfo.cpp @@ -35,6 +35,7 @@ static void initialize(TargetLibraryInfo &TLI, const Triple &T) { if (T.getArch() != Triple::xcore) { TLI.setUnavailable(LibFunc::iprintf); TLI.setUnavailable(LibFunc::siprintf); + TLI.setUnavailable(LibFunc::fiprintf); } } |