From: Chris Lattner Date: Mon, 10 Nov 2008 06:31:46 +0000 (+0000) Subject: don't preserve names on IR instructions. This matches llvm-gcc's behavior and X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=526d9271ad059071d24d59efeae17ecb03e91418;p=clang don't preserve names on IR instructions. This matches llvm-gcc's behavior and speeds up the compiler by ~8% at -emit-llvm -O0. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58977 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGBuilder.h b/lib/CodeGen/CGBuilder.h index 7d6e868159..3f59295487 100644 --- a/lib/CodeGen/CGBuilder.h +++ b/lib/CodeGen/CGBuilder.h @@ -14,7 +14,8 @@ namespace clang { namespace CodeGen { - typedef llvm::IRBuilder<> CGBuilderTy; + // Don't preserve names on values by default. + typedef llvm::IRBuilder CGBuilderTy; } // end namespace CodeGen } // end namespace clang