[LLVMdev] Improving performance with optimization passes

Gordon Henriksen gordonhenriksen at me.com
Thu Feb 19 12:09:34 PST 2009


On 2009-02-19, at 15:01, Jon Harrop wrote:

> On Thursday 19 February 2009 19:32:14 Gordon Henriksen wrote:
>>
>
>> Have you tried emitting loads and stores of the scalar elements to  
>> see if mem2reg can eliminate the allocas then?
>
> If I could do that I wouldn't be in this mess! ;-)
>
> I am only generating these temporary structs on the stack because I  
> cannot load and store struct elements any other way because the  
> OCaml bindings do not yet have insertvalue and extractvalue.


Path of least resistance would definitely be to add some new bindings.

— Gordon





More information about the llvm-dev mailing list