[cfe-commits] r58977 - /cfe/trunk/lib/CodeGen/CGBuilder.h

Daniel Dunbar daniel at zuster.org
Tue Nov 11 17:26:23 PST 2008


I agree, done.

 - Daniel

On Tue, Nov 11, 2008 at 7:24 AM, Nuno Lopes <nunoplopes at sapo.pt> wrote:
>> URL: http://llvm.org/viewvc/llvm-project?rev=58977&view=rev
>> Log:
>> don't preserve names on IR instructions.  This matches llvm-gcc's behavior
>> and
>> speeds up the compiler by ~8% at -emit-llvm -O0.
>>
>> Modified:
>>    cfe/trunk/lib/CodeGen/CGBuilder.h
>>
>> Modified: cfe/trunk/lib/CodeGen/CGBuilder.h
>> URL:
>> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuilder.h?rev=58977&r1=58976&r2=58977&view=diff
>>
>> ==============================================================================
>> --- cfe/trunk/lib/CodeGen/CGBuilder.h (original)
>> +++ cfe/trunk/lib/CodeGen/CGBuilder.h Mon Nov 10 00:31:46 2008
>> @@ -14,7 +14,8 @@
>>
>> namespace clang {
>> namespace CodeGen {
>> -  typedef llvm::IRBuilder<> CGBuilderTy;
>> +  // Don't preserve names on values by default.
>> +  typedef llvm::IRBuilder<false> CGBuilderTy;
>> }  // end namespace CodeGen
>> }  // end namespace clang
>
>
> Can you activate it in the Debug build, please? A simple #ifdef NDEBUG would
> suffice.
>
> Thanks,
> Nuno
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>



More information about the cfe-commits mailing list