1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/lib/Transforms
Reid Spencer a5fcd1660f 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

llvm-svn: 21657
2005-05-02 23:59:26 +00:00
..
Hello Remove trailing whitespace 2005-04-21 23:48:37 +00:00
Instrumentation Eliminate tabs and trailing spaces 2005-04-23 21:38:35 +00:00
IPO Implement the fprintf optimization which converts calls like this: 2005-05-02 23:59:26 +00:00
Scalar Fixed a comment. 2005-05-02 14:47:42 +00:00
Utils Remove optimizations that don't require both operands to be constant. These 2005-04-29 05:55:35 +00:00
ExprTypeConvert.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
LevelRaise.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
TransformInternals.cpp Remove trailing whitespace 2005-04-21 23:48:37 +00:00
TransformInternals.h Remove trailing whitespace 2005-04-21 23:48:37 +00:00