[LLVMdev] mem2reg optimization

David Greene dag at cray.com
Mon Aug 11 14:05:19 PDT 2008


On Monday 11 August 2008 09:58, Nicolas Capens wrote:
> Hi all,
>
>
>
> While profiling LLVM I noticed that a significant amount of time is spent
> in the RewriteSingleStoreAlloca function. Especially for fairly long basic
> blocks, linearly searching for uses before a store isn't fast. So I was
> wondering if there isn't a faster way to locate these uses?

YES!  I just finished a patch 2 hours ago to fix this.  I'll get it in ASAP.  
mem2reg totally dropped off the radar once I did this.

                                                 -Dave



More information about the llvm-dev mailing list