On Sat, Nov 15, 2008 at 12:37 AM, Ted Kremenek <[EMAIL PROTECTED]> wrote:

>
> On Nov 14, 2008, at 3:54 AM, Zhongxing Xu wrote:
>
>
>> +void AllocaRegion::ProfileRegion(llvm::FoldingSetNodeID& ID,
>> +                                 const Expr* Ex, unsigned cnt) {
>> +  ID.AddInteger((unsigned) AllocaRegionKind);
>> +  ID.AddPointer(Ex);
>> +  ID.AddInteger(cnt);
>> +}
>>
>> Do we need to include the superRegion in the profile?
>>
>
>
> The first value in the profile distinguishes all AllocaRegions with other
> MemRegions in the FoldingSet, so the last two elements in the profile are
> only used to distinguish between different AllocaRegion.  Currently all
> AllocaRegions have the same superRegion (the region for the stack) so it
> would provide no benefit to include it.   We of course can change this
> assumption if we think different AllocaRegions might have different super
> regions.
>

Reasonable.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to