Re: [PATCH] D13614: [Extension] Optimizing passed by-value const objects.

2015-12-02 Thread Richard Smith via cfe-commits
rsmith added a subscriber: rsmith. rsmith accepted this revision. rsmith added a reviewer: rsmith. rsmith added a comment. This revision is now accepted and ready to land. This looks fine (subject to the observation in http://reviews.llvm.org/D13603 that `MarkWriteOnceWrittenRAII` can just be a f

Re: [PATCH] D13614: [Extension] Optimizing passed by-value const objects.

2015-10-09 Thread Larisse Voufo via cfe-commits
lvoufo updated this revision to Diff 37012. lvoufo added a comment. Update patch (Wrong patch submitted earlier). http://reviews.llvm.org/D13614 Files: lib/CodeGen/CGDecl.cpp test/CodeGenCXX/const-invariant.cpp test/CodeGenObjCXX/arc.mm Index: test/CodeGenObjCXX/arc.mm ==

[PATCH] D13614: [Extension] Optimizing passed by-value const objects.

2015-10-09 Thread Larisse Voufo via cfe-commits
lvoufo created this revision. lvoufo added reviewers: chandlerc, dberlin, majnemer, nicholas. lvoufo added a subscriber: cfe-commits. Continued from D13603, handling functions that are defined with const parameters. http://reviews.llvm.org/D13614 Files: include/clang/AST/DeclCXX.h include/c