[PATCH] D31584: [coroutines] Add support for allocation elision

2017-04-16 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov added a comment. It is a simple change. If there is no objections, I'll commit it tomorrow. https://reviews.llvm.org/D31584 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D31584: [coroutines] Add support for allocation elision

2017-04-10 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov added a comment. Gentle ping https://reviews.llvm.org/D31584 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D31584: [coroutines] Add support for allocation elision

2017-04-02 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov created this revision. We wrap allocation code so that backend can elide it if necessary. llvm.coro.alloc intrinsic returns true, when allocation is needed and false otherwise. %NeedAlloc = call i1 @llvm.coro.alloc(token %2) br i1 %NeedAlloc, label %AllocBB, label %InitBB