diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-04-03 18:43:17 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-04-03 18:43:17 +0000 |
commit | 99c54d7fb082f932d273bf06e4c1063b9da0211f (patch) | |
tree | d31aa4dcae097f5dc9f446413f2060843d9bf1dc /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 3a4e43107b5f97458e9a4c9e3aa3df99920aa1c9 (diff) | |
download | bcm5719-llvm-99c54d7fb082f932d273bf06e4c1063b9da0211f.tar.gz bcm5719-llvm-99c54d7fb082f932d273bf06e4c1063b9da0211f.zip |
Add fast path for raw_ostream output of strings.
- Particularly nice for small constant strings, which get optimized
down nicely. On a synthetic benchmark writing out "hello" in a
loop, this is about 2x faster with gcc and 3x faster with
llvm-gcc. llc on insn-attrtab.bc from 403.gcc is about .5% faster.
- I tried for a fancier solution which wouldn't increase code size as
much (by trying to match constant arrays), but can't quite make it
fly.
llvm-svn: 68396
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions