[PATCH] [llgo] Elide alloca for unused received values in select
Andrew Wilkins
axwalk at gmail.com
Fri Dec 26 19:35:42 PST 2014
Hi pcc,
If a receive case in a select statement is not assigned to a named variable, then we can eliminate the alloca and copy at runtime.
http://reviews.llvm.org/D6785
Files:
irgen/channels.go
irgen/ssa.go
test/irgen/select.go
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6785.17643.patch
Type: text/x-patch
Size: 3991 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141227/7a3cdf29/attachment.bin>
More information about the llvm-commits
mailing list