[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
Fri Jan 13 23:07:32 PST 2017


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

Remove lifetime markers completely for variables that are declared after a label was seen in a compound statement

I tested this patch building llvm's test-suite and SPEC benchmarks with -Os. Surprisingly (maybe not so surprising), none of the 3000+ object files changed, so I think removing the markers should be fine at least for now.


https://reviews.llvm.org/D27680

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27680.84434.patch
Type: text/x-patch
Size: 4125 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170114/70e9ea7d/attachment.bin>


More information about the cfe-commits mailing list