[polly] r284845 - [polly] Change SmallPtrSet which are being iterated into SmallSetVector

Mandeep Singh Grang via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 21 10:29:10 PDT 2016


Author: mgrang
Date: Fri Oct 21 12:29:10 2016
New Revision: 284845

URL: http://llvm.org/viewvc/llvm-project?rev=284845&view=rev
Log:
[polly] Change SmallPtrSet which are being iterated into SmallSetVector

Summary: Otherwise the lack of an iteration order results in non-determinism in codegen.

Reviewers: _jdoerfert, zinob, grosser

Tags: #polly

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

Modified:
    polly/trunk/lib/Analysis/ScopInfo.cpp

Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=284845&r1=284844&r2=284845&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Fri Oct 21 12:29:10 2016
@@ -2978,7 +2978,7 @@ bool Scop::buildAliasGroups(AliasAnalysi
   }
 
   auto &F = getFunction();
-  MapVector<const Value *, SmallPtrSet<MemoryAccess *, 8>> ReadOnlyPairs;
+  MapVector<const Value *, SmallSetVector<MemoryAccess *, 8>> ReadOnlyPairs;
   SmallPtrSet<const Value *, 4> NonReadOnlyBaseValues;
   for (AliasGroupTy &AG : AliasGroups) {
     NonReadOnlyBaseValues.clear();




More information about the llvm-commits mailing list