[llvm-commits] [PATCH 09/20] [AVX] Make IntInit Unique

David A. Greene greened at obbligato.org
Wed Jul 20 14:44:49 PDT 2011


dag at cray.com (David A. Greene) writes:

> Jakob Stoklund Olesen <stoklund at 2pi.dk> writes:

>> This pattern is faster and simpler:
>>
>> const IntInit *&I = ThePool[V];
>> if (!I) I = new IntInit(V);
>> return I;
>
> Ok.

Done!

                        -Dave



More information about the llvm-commits mailing list