[polly] r312273 - [polly] Fix non-deterministic output due to iteration of unordered ScopArrayInfo
Mandeep Singh Grang via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 31 13:10:30 PDT 2017
Author: mgrang
Date: Thu Aug 31 13:10:30 2017
New Revision: 312273
URL: http://llvm.org/viewvc/llvm-project?rev=312273&view=rev
Log:
[polly] Fix non-deterministic output due to iteration of unordered ScopArrayInfo
Summary:
This fixes the following failures in the reverse iteration builder:
http://lab.llvm.org:8011/builders/reverse-iteration/builds/25
Polly :: MaximalStaticExpansion/working_deps_between_inners.ll
Polly :: MaximalStaticExpansion/working_expansion_multiple_dependences_per_statement.ll
Polly :: MaximalStaticExpansion/working_expansion_multiple_instruction_per_statement.ll
Polly :: MaximalStaticExpansion/working_phi_expansion.ll
Reviewers: simbuerg, Eugene.Zelenko, grosser, zinob, bollu
Reviewed By: grosser
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D37349
Modified:
polly/trunk/lib/Transform/MaximalStaticExpansion.cpp
Modified: polly/trunk/lib/Transform/MaximalStaticExpansion.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/MaximalStaticExpansion.cpp?rev=312273&r1=312272&r2=312273&view=diff
==============================================================================
--- polly/trunk/lib/Transform/MaximalStaticExpansion.cpp (original)
+++ polly/trunk/lib/Transform/MaximalStaticExpansion.cpp Thu Aug 31 13:10:30 2017
@@ -496,7 +496,7 @@ bool MaximalStaticExpander::runOnScop(Sc
auto &D = DI.getDependences(Dependences::AL_Reference);
auto Dependences = isl::give(D.getDependences(Dependences::TYPE_RAW));
- SmallPtrSet<ScopArrayInfo *, 4> CurrentSAI(S.arrays().begin(),
+ SmallVector<ScopArrayInfo *, 4> CurrentSAI(S.arrays().begin(),
S.arrays().end());
for (auto SAI : CurrentSAI) {
More information about the llvm-commits
mailing list