[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp Writer.cpp

2007-04-28 Thread Anton Korobeynikov
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.112 -> 1.113 Writer.cpp updated: 1.177 -> 1.178 --- Log message: Implement review feedback. Aliasees can be either GlobalValue's or bitcasts of them. --- Diffs of the changes: (+19 -5) SlotCalculator.cpp | 13 +

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h Writer.cpp WriterInternals.h

2007-04-08 Thread Reid Spencer
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.111 -> 1.112 SlotCalculator.h updated: 1.50 -> 1.51 Writer.cpp updated: 1.170 -> 1.171 WriterInternals.h updated: 1.33 -> 1.34 --- Log message: For PR1146: http://llvm.org/PR1146 : Use ParamAttrsList for writing parame

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp Writer.cpp WriterInternals.h

2007-02-11 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.110 -> 1.111 Writer.cpp updated: 1.165 -> 1.166 WriterInternals.h updated: 1.32 -> 1.33 --- Log message: Switch ValueSymbolTable to use StringMap instead of std::map as its main datastructure. There are many improvem

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp

2007-02-10 Thread Reid Spencer
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.109 -> 1.110 --- Log message: Undo the last patch. It slowed down bcwriter by 1.8% but only sped up the bc reader by 0.8%. Deemed "not worth it" --- Diffs of the changes: (+5 -67) SlotCalculator.cpp | 72 +++

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp

2007-02-10 Thread Reid Spencer
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.108 -> 1.109 --- Log message: For PR1194: http://llvm.org/PR1194 : The bcreader counts on "primitive" types being inserted before they are referenced in other types. With recent changes to the bcwriter, this fact beca

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp

2007-02-10 Thread Reid Spencer
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.107 -> 1.108 --- Log message: Fix a comment. --- Diffs of the changes: (+1 -1) SlotCalculator.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Bytecode/Writer/SlotCalculator.cpp diff

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.106 -> 1.107 SlotCalculator.h updated: 1.46 -> 1.47 --- Log message: use typedefs where appropriate --- Diffs of the changes: (+3 -3) SlotCalculator.cpp |2 +- SlotCalculator.h |4 ++-- 2 files changed,

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.105 -> 1.106 SlotCalculator.h updated: 1.45 -> 1.46 --- Log message: The ModuleLevel vector is often quite sparse. Switch it to a DenseMap. This speeds up bcwriting of 447.dealII by 40%, from 4.63s to 3.32s. --- Di

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.104 -> 1.105 SlotCalculator.h updated: 1.44 -> 1.45 --- Log message: Make the ModuleLevel datastructure more sane. When a function-local value is inserted into the table, it remembers that the value needs to be popped

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.103 -> 1.104 --- Log message: Only compute the module levels info once per module, instead of once per function. This speeds up bcwriting on 447.dealII from 10.16s to 6.81s (49%). --- Diffs of the changes: (+7 -15)

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.102 -> 1.103 SlotCalculator.h updated: 1.43 -> 1.44 --- Log message: Clone and specialize CreateSlotIfNeeded into CreateFunctionValueSlot to handle function-local values. This speeds up bcwriting a small 2.2% (10.384-

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.101 -> 1.102 SlotCalculator.h updated: 1.42 -> 1.43 --- Log message: make getSlot/getTypeSlot inline --- Diffs of the changes: (+11 -14) SlotCalculator.cpp | 12 SlotCalculator.h | 13 ++

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h Writer.cpp

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.100 -> 1.101 SlotCalculator.h updated: 1.41 -> 1.42 Writer.cpp updated: 1.161 -> 1.162 --- Log message: getTypeSlot can never fail --- Diffs of the changes: (+26 -62) SlotCalculator.cpp |4 +- SlotCalculator.h

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h Writer.cpp

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.99 -> 1.100 SlotCalculator.h updated: 1.40 -> 1.41 Writer.cpp updated: 1.160 -> 1.161 --- Log message: getSlot can never fail. Make it assert internally, eliminate checks in clients. Same for getTypeSlot. --- Diffs

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.98 -> 1.99 SlotCalculator.h updated: 1.39 -> 1.40 --- Log message: simplify getOrCreateTypeSlot, eliminat doInsertType. Eliminate post-order iteration stuff. --- Diffs of the changes: (+10 -32) SlotCalculator.cp

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.97 -> 1.98 --- Log message: simplify and speed up recursive type processing. --- Diffs of the changes: (+2 -4) SlotCalculator.cpp |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) Index: llvm/lib/B

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.96 -> 1.97 SlotCalculator.h updated: 1.38 -> 1.39 --- Log message: rename getOrCreateSlot -> CreateSlotIfNeeded. Noone cares about the retval --- Diffs of the changes: (+14 -23) SlotCalculator.cpp | 31

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.95 -> 1.96 SlotCalculator.h updated: 1.37 -> 1.38 --- Log message: refactor callers of insertType. inline insertType into its one remaining caller. --- Diffs of the changes: (+11 -23) SlotCalculator.cpp | 28 +

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.94 -> 1.95 SlotCalculator.h updated: 1.36 -> 1.37 --- Log message: simplify code. --- Diffs of the changes: (+13 -33) SlotCalculator.cpp | 40 ++-- SlotCalculator.h |6 +

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.93 -> 1.94 --- Log message: simplify some logic, reduce nesting --- Diffs of the changes: (+20 -25) SlotCalculator.cpp | 45 - 1 files changed, 20 insertions(+), 25 de

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.92 -> 1.93 SlotCalculator.h updated: 1.35 -> 1.36 --- Log message: Remove dead ctor --- Diffs of the changes: (+0 -13) SlotCalculator.cpp | 11 --- SlotCalculator.h |2 -- 2 files changed, 13 delet

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.91 -> 1.92 SlotCalculator.h updated: 1.34 -> 1.35 --- Log message: ModuleContainsAllFunctionConstants is always true --- Diffs of the changes: (+10 -39) SlotCalculator.cpp | 44 ++

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.90 -> 1.91 --- Log message: only one client of getOrCreateSlot can pass a void typed value. Check type there. --- Diffs of the changes: (+3 -2) SlotCalculator.cpp |5 +++-- 1 files changed, 3 insertions(+), 2

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.89 -> 1.90 SlotCalculator.h updated: 1.33 -> 1.34 --- Log message: inline hasNullValue, rename some variables, simplify some code. --- Diffs of the changes: (+24 -30) SlotCalculator.cpp | 53

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.88 -> 1.89 --- Log message: merge insertValue into its single caller, eliminate some redundant checks. --- Diffs of the changes: (+1 -12) SlotCalculator.cpp | 13 + 1 files changed, 1 insertion(+), 1

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.87 -> 1.88 SlotCalculator.h updated: 1.32 -> 1.33 --- Log message: merge doInsertValue into insertValue --- Diffs of the changes: (+43 -54) SlotCalculator.cpp | 96 +++

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.86 -> 1.87 SlotCalculator.h updated: 1.31 -> 1.32 --- Log message: insertvalue's second operand is always false --- Diffs of the changes: (+7 -11) SlotCalculator.cpp | 16 ++-- SlotCalculator.h |

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.85 -> 1.86 SlotCalculator.h updated: 1.30 -> 1.31 --- Log message: remove dead 'dontIgnore' flag for insertType --- Diffs of the changes: (+12 -12) SlotCalculator.cpp | 22 +++--- SlotCalculator.

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h Writer.cpp

2007-02-09 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.84 -> 1.85 SlotCalculator.h updated: 1.29 -> 1.30 Writer.cpp updated: 1.159 -> 1.160 --- Log message: rename getSlot -> getSlotType and getOrCreateSlot ->getOrCreateTypeSlot for types. --- Diffs of the changes: (+43

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h

2007-02-09 Thread Reid Spencer
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.83 -> 1.84 SlotCalculator.h updated: 1.28 -> 1.29 --- Log message: Make SlotCalculator::getPlane an inline function. It is used inside loops. --- Diffs of the changes: (+8 -9) SlotCalculator.cpp |8 S

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h Writer.cpp

2007-02-08 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.82 -> 1.83 SlotCalculator.h updated: 1.27 -> 1.28 Writer.cpp updated: 1.156 -> 1.157 --- Log message: 1. constants can never occur in the symbol table. 2. All function-level constants are now incorporated into the modu

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h Writer.cpp WriterInternals.h

2007-02-05 Thread Reid Spencer
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.81 -> 1.82 SlotCalculator.h updated: 1.26 -> 1.27 Writer.cpp updated: 1.155 -> 1.156 WriterInternals.h updated: 1.28 -> 1.29 --- Log message: For PR411: http://llvm.org/PR411 : This patch replaces the SymbolTable class

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h Writer.cpp

2007-01-30 Thread Reid Spencer
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.80 -> 1.81 SlotCalculator.h updated: 1.25 -> 1.26 Writer.cpp updated: 1.153 -> 1.154 --- Log message: Bye, Bye Compaction Tables. The benefit compaction tables provides doesn't outweight its computational costs. This p

Re: [llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h Writer.cpp

2007-01-12 Thread Chris Lattner
On Jan 11, 2007, at 11:06 PM, Reid Spencer wrote: > @@ -484,12 +488,12 @@ >assert(Slot >= 0 && "No slot number for value!?!?"); > >if (isa(*TI)) { > -unsigned IdxId; > -switch (I->getOperand(Idx)->getType()->getTypeID()) { > -default: assert(0 && "Unknown ind

Re: [llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h Writer.cpp

2007-01-12 Thread Chris Lattner
On Jan 11, 2007, at 11:06 PM, Reid Spencer wrote: > @@ -484,12 +488,12 @@ >assert(Slot >= 0 && "No slot number for value!?!?"); > >if (isa(*TI)) { > -unsigned IdxId; > -switch (I->getOperand(Idx)->getType()->getTypeID()) { > -default: assert(0 && "Unknown ind

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp

2007-01-12 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.79 -> 1.80 --- Log message: Eliminate a log(n) lookup --- Diffs of the changes: (+3 -3) SlotCalculator.cpp |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Index: llvm/lib/Bytecode/Writer/SlotCal

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h Writer.cpp

2007-01-11 Thread Reid Spencer
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.78 -> 1.79 SlotCalculator.h updated: 1.24 -> 1.25 Writer.cpp updated: 1.145 -> 1.146 --- Log message: For PR1064: http://llvm.org/PR1064 : Implement the arbitrary bit-width integer feature. The feature allows integers

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h Writer.cpp WriterInternals.h

2007-01-05 Thread Reid Spencer
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.77 -> 1.78 SlotCalculator.h updated: 1.23 -> 1.24 Writer.cpp updated: 1.141 -> 1.142 WriterInternals.h updated: 1.27 -> 1.28 --- Log message: For PR411: http://llvm.org/PR411 : Take an incremental step towards type pla

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp Writer.cpp

2006-12-30 Thread Reid Spencer
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.76 -> 1.77 Writer.cpp updated: 1.140 -> 1.141 --- Log message: For PR950: http://llvm.org/PR950 : Update for signless integer types and parameter attribute implementation. Of significant note: 1. This changes the byt

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp Writer.cpp

2006-12-06 Thread Bill Wendling
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.75 -> 1.76 Writer.cpp updated: 1.135 -> 1.136 --- Log message: Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are now cerr, cout, and NullStream resp. --- Diffs of the changes: (+7 -7) Sl

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp Writer.cpp

2006-11-28 Thread Bill Wendling
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.74 -> 1.75 Writer.cpp updated: 1.129 -> 1.130 --- Log message: Replacing std::iostreams with llvm iostreams. Some of these changes involve adding a temporary wrapper around the ostream to make it friendly to functions

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp

2006-06-07 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.73 -> 1.74 --- Log message: Fix a bug where the types for inlineasm nodes were not properly entered into the compaction table for a function. This broke compilation of hexxagon on darwin/x86 with recent changes. ---

[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp SlotCalculator.h Writer.cpp WriterInternals.h

2006-01-25 Thread Chris Lattner
Changes in directory llvm/lib/Bytecode/Writer: SlotCalculator.cpp updated: 1.72 -> 1.73 SlotCalculator.h updated: 1.22 -> 1.23 Writer.cpp updated: 1.118 -> 1.119 WriterInternals.h updated: 1.26 -> 1.27 --- Log message: add bc reader/writer support for inline asm --- Diffs of the changes: (+4