[llvm-commits] [llvm] r50261 - /llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp
Gabor Greif
ggreif at gmail.com
Fri Apr 25 01:59:22 PDT 2008
Author: ggreif
Date: Fri Apr 25 03:59:22 2008
New Revision: 50261
URL: http://llvm.org/viewvc/llvm-project?rev=50261&view=rev
Log:
break lines near 80 columns
Modified:
llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp
Modified: llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp?rev=50261&r1=50260&r2=50261&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/branches/ggreif/use-diet/lib/Bitcode/Reader/BitcodeReader.cpp Fri Apr 25 03:59:22 2008
@@ -149,16 +149,11 @@
void BitcodeReaderValueList::resize(unsigned Desired) {
if (Desired > Capacity)
{
- // Since we expect many values
- // to come from the bitcode file
- // we better allocate the double
- // amount, so that the array size
- // grows exponentially at each
- // reallocation. Also, add a small
- // amount of 100 extra elements
- // each time, to reallocate less
- // frequently when the array
- // is still small.
+ // Since we expect many values to come from the bitcode file we better
+ // allocate the double amount, so that the array size grows exponentially
+ // at each reallocation. Also, add a small amount of 100 extra elements
+ // each time, to reallocate less frequently when the array is still small.
+ //
Capacity = Desired * 2 + 100;
Use *New = allocHungoffUses(Capacity);
Use *Old = OperandList;
More information about the llvm-commits
mailing list