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

Chris Lattner sabre at nondot.org
Sun Nov 9 22:31:47 PST 2008


Author: lattner
Date: Mon Nov 10 00:31:46 2008
New Revision: 58977

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
 





More information about the cfe-commits mailing list