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 | 45e39589411c8dfd625b71daba674b11286ea512 (patch) | |
tree | 554d3e6aac79e72d1ff76791579c90a2fb3b0035 /utils/TableGen/CodeGenTarget.cpp | |
parent | 873e1b56427eee7879168b50cca8a85b04f18093 (diff) |
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
Diffstat (limited to 'utils/TableGen/CodeGenTarget.cpp')
0 files changed, 0 insertions, 0 deletions