diff options
author | Owen Anderson <resistor@mac.com> | 2008-06-24 21:58:29 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-06-24 21:58:29 +0000 |
commit | 79c69bc45f279e72d5294ffacdab178845b05312 (patch) | |
tree | de18316bfc814f66817a450bb5dd31376a32cf01 /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
parent | 230b3eb80cc97293708852eb6c8c70250f94c146 (diff) | |
download | llvm-79c69bc45f279e72d5294ffacdab178845b05312.zip llvm-79c69bc45f279e72d5294ffacdab178845b05312.tar.gz llvm-79c69bc45f279e72d5294ffacdab178845b05312.tar.bz2 |
In ConstantArray::getAsString(), we know the size of the resultant string in advance so we can pre-allocate it and just fill in
the entries. This improves the time for the AsmPrinter on InstructionCombining.cpp from 0.4248s to 0.3370s.
llvm-svn: 52690
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions