[llvm-commits] [PATCH] Make Inits FoldingSetNodes

Jakob Stoklund Olesen stoklund at 2pi.dk
Thu Jul 14 10:08:50 PDT 2011


On Jul 14, 2011, at 9:55 AM, Jakob Stoklund Olesen wrote:

>> +  Init(const FoldingSetNodeID &ID) : FastFoldingSetNode(ID) {}
> 
> This adds 64 bytes of overhead to an IntInit that was 16 bytes before. That is going in the wrong direction.

Oops, miscalculation. A FastFoldingSetNode is 160 bytes: sizeof(SmallVector<unsigned, 32>) + sizeof(void*).

/jakob




More information about the llvm-commits mailing list