aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-06-24 21:58:29 +0000
committerOwen Anderson <resistor@mac.com>2008-06-24 21:58:29 +0000
commit79c69bc45f279e72d5294ffacdab178845b05312 (patch)
treede18316bfc814f66817a450bb5dd31376a32cf01 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parent230b3eb80cc97293708852eb6c8c70250f94c146 (diff)
downloadllvm-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