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 | 38f4dd7b5e333aee8f89cee85d1c79378fee0ffc (patch) | |
tree | 6ede6d59455a6e690ba24c379ac69e368aaf241e /lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | cf2202a84908f64a49b93e232fc375837963b01d (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68396 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
0 files changed, 0 insertions, 0 deletions