Emit lifetime.start / lifetime.end markers for unnamed temporary objects.
authorArnaud A. de Grandmaison <arnaud.degrandmaison@arm.com>
Mon, 21 Jul 2014 18:54:21 +0000 (18:54 +0000)
committerArnaud A. de Grandmaison <arnaud.degrandmaison@arm.com>
Mon, 21 Jul 2014 18:54:21 +0000 (18:54 +0000)
commit17a83cf4b6dbba6ab6e96608ecf77c8c87019f3f
tree824f2e20aa824f2b17a9f10cd5eadf030a7521b2
parent0fb2f5d0f954d51df5a3f7414a8cfb9ad19fa4e1
Emit lifetime.start / lifetime.end markers for unnamed temporary objects.

This will give more information to the optimizers so that they can reuse stack slots.

llvm-svn: 213576
clang/lib/CodeGen/CGDecl.cpp
clang/lib/CodeGen/CGExpr.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/test/CodeGenCXX/unnamed-object-lifetime.cpp [new file with mode: 0644]