[LoopVectorize] Fix for non-determinism in codegen

Summary: This patch fixes issues in codegen uncovered due to https://reviews.llvm.org/D26718

Reviewers: mssimpso

Subscribers: llvm-commits, mzolotukhin

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

llvm-svn: 287135
This commit is contained in:
Mandeep Singh Grang 2016-11-16 18:53:17 +00:00
parent d3c4e1b11f
commit 000ce9a686
1 changed files with 1 additions and 1 deletions

View File

@ -5497,7 +5497,7 @@ void LoopVectorizationLegality::collectLoopUniforms() {
// are pointers that are treated like consecutive pointers during // are pointers that are treated like consecutive pointers during
// vectorization. The pointer operands of interleaved accesses are an // vectorization. The pointer operands of interleaved accesses are an
// example. // example.
SmallPtrSet<Instruction *, 8> ConsecutiveLikePtrs; SmallSetVector<Instruction *, 8> ConsecutiveLikePtrs;
// Holds pointer operands of instructions that are possibly non-uniform. // Holds pointer operands of instructions that are possibly non-uniform.
SmallPtrSet<Instruction *, 8> PossibleNonUniformPtrs; SmallPtrSet<Instruction *, 8> PossibleNonUniformPtrs;