arvindm95 / unladen-swallow

Automatically exported from code.google.com/p/unladen-swallow
Other
0 stars 0 forks source link

Turn BUILD_TUPLE/BUILD_LIST into memcpy operations. #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The core of BUILD_TUPLE/BUILD_LIST (and also other opcodes that build
tuples or lists out of stack items, like CALL_FUNCTION might do) is
essentially a memcpy() from the stack to the body of the (newly created)
tuple/list object. LLVM doesn't seem to optimize this by itself, so we
should turn this into an @llvm.memcpy call.

Original issue reported on code.google.com by thomaswout@gmail.com on 21 Apr 2009 at 10:43

GoogleCodeExporter commented 8 years ago

Original comment by collinw on 27 May 2009 at 9:47

GoogleCodeExporter commented 8 years ago

Original comment by collinw on 29 May 2009 at 4:13

GoogleCodeExporter commented 8 years ago
I am confused about the state of this ticket.  jyasskin you appear to have a 
checkin adding MemCpy method to 
LlvmFunctionBuilder, but it is not being used in MAKE_CLOSURE or 
BuildSequenceLiteral?  Are you working on a 
patch to this?

Original comment by mcquilla...@gmail.com on 23 Jun 2009 at 8:00

GoogleCodeExporter commented 8 years ago
I'm not, but abbeyj has http://codereview.appspot.com/82045 which I need to 
review.

Original comment by jyass...@gmail.com on 23 Jun 2009 at 8:29

GoogleCodeExporter commented 8 years ago
I started a work on this at http://codereview.appspot.com/82045/show but I'm not
seeing much of an effect so I haven't done anything else with it.

Original comment by abbeyj on 23 Jun 2009 at 8:31