diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2005-05-02 23:59:26 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2005-05-02 23:59:26 +0000 |
| commit | 2d5c7beebd88369c8856c541b9eb6abd290ae5df (patch) | |
| tree | 3e6f6ce9d451f07cf4625ff2c49b4a46e8fc657d /llvm/lib/Transforms/TransformInternals.h | |
| parent | 59605a1b57ace89462093988faf4d1caf151134a (diff) | |
| download | bcm5719-llvm-2d5c7beebd88369c8856c541b9eb6abd290ae5df.tar.gz bcm5719-llvm-2d5c7beebd88369c8856c541b9eb6abd290ae5df.zip | |
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
Diffstat (limited to 'llvm/lib/Transforms/TransformInternals.h')
0 files changed, 0 insertions, 0 deletions

