[polly] Change SmallPtrSet which are being iterated into SmallSetVector
authorMandeep Singh Grang <mgrang@codeaurora.org>
Fri, 21 Oct 2016 17:29:10 +0000 (17:29 +0000)
committerMandeep Singh Grang <mgrang@codeaurora.org>
Fri, 21 Oct 2016 17:29:10 +0000 (17:29 +0000)
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

llvm-svn: 284845

polly/lib/Analysis/ScopInfo.cpp

index 174160f..e97c03d 100644 (file)
@@ -2978,7 +2978,7 @@ bool Scop::buildAliasGroups(AliasAnalysis &AA) {
   }
 
   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();