[cfe-commits] r58551 - in /cfe/trunk: include/clang/Analysis/PathSensitive/MemRegion.h lib/Analysis/MemRegion.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Fri Nov 14 15:18:36 PST 2008
On Sat, Nov 15, 2008 at 12:37 AM, Ted Kremenek <kremenek at apple.com> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20081115/11e77f25/attachment.html>
More information about the cfe-commits
mailing list