[llvm-commits] [PATCH] Clear unknown mem ops when merging stack slots (pr14090)

Nadav Rotem nrotem at apple.com
Thu Oct 18 14:51:53 PDT 2012


Thank you!


On Oct 18, 2012, at 12:58 PM, Sebastian Pop <spop at codeaurora.org> wrote:

> Committed r166215 and r166216.
> 
> Sebastian
> 
> On Wed, Oct 17, 2012 at 2:46 PM, Duncan Sands <baldrick at free.fr> wrote:
>> Hi Matthew,
>> 
>> 
>>>> If this map only contains AllocaInst's as the name suggests, then it
>>>> would be
>>>> 
>>>> cheaper to first check if UO is an AllocaInst or not, and only do the map
>>>> lookup
>>>> if it is one.
>>> 
>>> I'm not sure about whether Allocas only contains AllocaInsts. Keys are the
>>> returned by MachineFrameInfo::getObjectAllocation();
>> 
>> 
>> it sounds from the documentation like getObjectAllocation is supposed to
>> only
>> return allocas.  How about the following: change getObjectAllocation to
>> return
>> an AllocaInst* rather than a Value* (plus knock-on changes), and see if the
>> world falls to pieces or not.  If not, commit it!
>> 
>> 
>>>> Likewise for the null check: no point in doing a lookup if UO is
>>>> none.
>>>> 
>>> Done.
>> 
>> 
>> Thanks, Duncan.
>> 
>> 
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
> 
> 
> 
> -- 
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
> hosted by The Linux Foundation
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list