Skip to content

Commit

Permalink
[polly] Fix non-deterministic output due to iteration of unordered Sc…
Browse files Browse the repository at this point in the history
…opArrayInfo

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

llvm-svn: 312273
  • Loading branch information
Mandeep Singh Grang committed Aug 31, 2017
1 parent 3aefe87 commit c2774a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polly/lib/Transform/MaximalStaticExpansion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ bool MaximalStaticExpander::runOnScop(Scop &S) {
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) {
Expand Down

0 comments on commit c2774a5

Please sign in to comment.