Skip to content

Commit

Permalink
[polly] Change SmallPtrSet which are being iterated into SmallSetVector
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Mandeep Singh Grang committed Oct 21, 2016
1 parent 81029f6 commit 48e7add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polly/lib/Analysis/ScopInfo.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 48e7add

Please sign in to comment.