[polly] r284883 - [polly] Change SmallPtrSet which is being iterated to SmallSetVector in ScopInfo.h

Mandeep Singh Grang via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 21 14:00:12 PDT 2016


Author: mgrang
Date: Fri Oct 21 16:00:11 2016
New Revision: 284883

URL: http://llvm.org/viewvc/llvm-project?rev=284883&view=rev
Log:
[polly] Change SmallPtrSet which is being iterated to SmallSetVector in ScopInfo.h

Summary: This will avoid non-deterministic iteration order.

Reviewers: grosser, jdoerfert, zinob, mgrang

Subscribers: #polly

Tags: #polly

Differential Revision: https://reviews.llvm.org/D25880

Modified:
    polly/trunk/include/polly/ScopInfo.h

Modified: polly/trunk/include/polly/ScopInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopInfo.h?rev=284883&r1=284882&r2=284883&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopInfo.h (original)
+++ polly/trunk/include/polly/ScopInfo.h Fri Oct 21 16:00:11 2016
@@ -270,7 +270,7 @@ public:
   const ScopArrayInfo *getBasePtrOriginSAI() const { return BasePtrOriginSAI; }
 
   /// The set of derived indirect SAIs for this origin SAI.
-  const SmallPtrSetImpl<ScopArrayInfo *> &getDerivedSAIs() const {
+  const SmallSetVector<ScopArrayInfo *, 2> &getDerivedSAIs() const {
     return DerivedSAIs;
   }
 
@@ -369,7 +369,7 @@ private:
   const ScopArrayInfo *BasePtrOriginSAI;
 
   /// For origin SAIs the set of derived indirect SAIs.
-  SmallPtrSet<ScopArrayInfo *, 2> DerivedSAIs;
+  SmallSetVector<ScopArrayInfo *, 2> DerivedSAIs;
 
   /// The base pointer.
   AssertingVH<Value> BasePtr;




More information about the llvm-commits mailing list