diff options
| author | Manman Ren <mren@apple.com> | 2013-03-20 16:59:38 +0000 |
|---|---|---|
| committer | Manman Ren <mren@apple.com> | 2013-03-20 16:59:38 +0000 |
| commit | 0175461296044bd572559b9a4a5473ddcd411bce (patch) | |
| tree | 53ebc887f08494e93b5f8d14fdfaa31c9c53b54a /clang/lib/Serialization/ASTWriter.cpp | |
| parent | 7a8bb72a3a01d20bd899befc0b265117ef25b1f1 (diff) | |
| download | bcm5719-llvm-0175461296044bd572559b9a4a5473ddcd411bce.tar.gz bcm5719-llvm-0175461296044bd572559b9a4a5473ddcd411bce.zip | |
Exploit this-return of a callsite in a this-return function.
For constructors/desctructors that return 'this', if there exists a callsite
that returns 'this' and is immediately before the return instruction, make
sure we are using the return value from the callsite.
We don't need to keep 'this' alive through the callsite. It also enables
optimizations in the backend, such as tail call optimization.
Updated from r177211.
rdar://12818789
llvm-svn: 177541
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
0 files changed, 0 insertions, 0 deletions

