[llvm-commits] [llvm] r172368 - in /llvm/trunk: lib/Transforms/Scalar/ObjCARC.cpp test/Transforms/ObjCARC/dont-infinite-loop-during-block-escape-analysis.ll

Michael Gottesman mgottesman at apple.com
Mon Jan 14 11:19:24 PST 2013


Thanks fixed in r172452.

On Jan 14, 2013, at 10:07 AM, Jakob Stoklund Olesen <stoklund at 2pi.dk> wrote:

> 
> On Jan 13, 2013, at 2:12 PM, Michael Gottesman <mgottesman at apple.com> wrote:
> 
>> +          if (!VisitedSet.count(UUser)) {
>> +            DEBUG(dbgs() << "DoesObjCBlockEscape: User copies value. Escapes if "
>> +                            "result escapes. Adding to list.\n");
>> +            VisitedSet.insert(V);
>> +            Worklist.push_back(UUser);
>> +          } else {
> 
> SmallPtrSet::insert() returns a bool you can use to avoid two hash lookups.
> 
> /jakob
> 




More information about the llvm-commits mailing list