llvm-6502/lib/Transforms/IPO
Reid Spencer a1b4390938 Implement the fprintf optimization which converts calls like this:
fprintf(F,"hello") -> fwrite("hello",strlen("hello"),1,F)
  fprintf(F,"%s","hello") -> fwrite("hello",strlen("hello"),1,F)
  fprintf(F,"%c",'x') -> fputc('c',F)

This optimization fires severals times in llvm-test:

313 MultiSource/Applications/Burg
302 MultiSource/Benchmarks/Prolangs-C/TimberWolfMC
189 MultiSource/Benchmarks/Prolangs-C/mybison
175 MultiSource/Benchmarks/Prolangs-C/football
130 MultiSource/Benchmarks/Prolangs-C/unix-tbl


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21657 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-02 23:59:26 +00:00
..
ArgumentPromotion.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
ConstantMerge.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
DeadArgumentElimination.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
DeadTypeElimination.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
ExtractFunction.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
FunctionResolution.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
GlobalDCE.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
GlobalOpt.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
Inliner.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
Inliner.h Remove trailing whitespace 2005-04-21 23:48:37 +00:00
InlineSimple.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
Internalize.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
IPConstantPropagation.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
LoopExtractor.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
LowerSetJmp.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
Makefile Change Library Names Not To Conflict With Others When Installed 2004-10-27 23:18:45 +00:00
PruneEH.cpp remove 'statement with no effect' warning 2005-04-27 20:12:17 +00:00
RaiseAllocations.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
SimplifyLibCalls.cpp Implement the fprintf optimization which converts calls like this: 2005-05-02 23:59:26 +00:00
StripSymbols.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00