[PATCH] D27680: [CodeGen] Move lifetime.start of a variable when goto jumps back past its declaration

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 20 13:28:50 PST 2016


ahatanak updated this revision to Diff 82142.
ahatanak added a comment.

Rebase and improve test cases.

- Add "-mllvm -disable-llvm-optzns" to the RUN line.
- Add a test case that shows lifetime.start of a variable isn't moved to the beginning of its scope when the goto leaves the scope.


https://reviews.llvm.org/D27680

Files:
  lib/CodeGen/CGDecl.cpp
  lib/CodeGen/CGExpr.cpp
  lib/CodeGen/CGStmt.cpp
  lib/CodeGen/CodeGenFunction.h
  test/CodeGen/lifetime2.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27680.82142.patch
Type: text/x-patch
Size: 11825 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161220/203b50b8/attachment-0001.bin>


More information about the cfe-commits mailing list