Emit lifetime.start / lifetime.end markers for unnamed temporary objects.
authorArnaud A. de Grandmaison <arnaud.degrandmaison@arm.com>
Fri, 18 Jul 2014 13:36:33 +0000 (13:36 +0000)
committerArnaud A. de Grandmaison <arnaud.degrandmaison@arm.com>
Fri, 18 Jul 2014 13:36:33 +0000 (13:36 +0000)
commit1be89f4977724896289e6d706690ada275e9f451
treea73ba745d323d0a58e41f059a8c39a49cea620d5
parentf8bfe21fad8f4c1ca41e583ef6fd7aae5b17e95e
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: 213379
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]