]> granicus.if.org Git - clang/commit
fix CreateTempAlloca to not set a name on the alloca for temporaries
authorChris Lattner <sabre@nondot.org>
Sun, 22 Mar 2009 00:24:14 +0000 (00:24 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 22 Mar 2009 00:24:14 +0000 (00:24 +0000)
commitf1466848dce9c4c75d96a6cabdc8db560e26aac8
tree84dc2e5666e691322f482b4001a494542be5a5b6
parentd972678a053d4785772b75cf6c8d4ab74ac2c7f6
fix CreateTempAlloca to not set a name on the alloca for temporaries
in release-assert builds.  For automatic variables, explicitly set
a name with setName that does not make a temporary std::string.

This speeds up -emit-llvm-only -disable-free on PR3810 by 4.6%

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67459 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDecl.cpp
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CodeGenFunction.cpp