In ConstantArray::getAsString(), we know the size of the resultant string in advance...
authorOwen Anderson <resistor@mac.com>
Tue, 24 Jun 2008 21:58:29 +0000 (21:58 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 24 Jun 2008 21:58:29 +0000 (21:58 +0000)
commit45e39589411c8dfd625b71daba674b11286ea512
tree554d3e6aac79e72d1ff76791579c90a2fb3b0035
parent873e1b56427eee7879168b50cca8a85b04f18093
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52690 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/Constants.cpp