[PATCH] D99549: [LoopVectorize] Use SetVector to track uniform uses to prevent non-determinism.

Huihui Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 30 10:09:16 PDT 2021


huihuiz updated this revision to Diff 334211.
huihuiz retitled this revision from "[LoopVectorize] Use SmallVector to track uniform uses to prevent non-determinism." to "[LoopVectorize] Use SetVector to track uniform uses to prevent non-determinism.".
huihuiz edited the summary of this revision.
huihuiz added a reviewer: fhahn.
huihuiz added a comment.

Update diff to use SetVector.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99549/new/

https://reviews.llvm.org/D99549

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp


Index: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
===================================================================
--- llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -5387,7 +5387,7 @@
   // here is something which only demands lane 0 of the unrolled iterations;
   // it does not imply that all lanes produce the same value (e.g. this is not
   // the usual meaning of uniform)
-  SmallPtrSet<Value *, 8> HasUniformUse;
+  SetVector<Value *> HasUniformUse;
 
   // Scan the loop for instructions which are either a) known to have only
   // lane 0 demanded or b) are uses which demand only lane 0 of their operand.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99549.334211.patch
Type: text/x-patch
Size: 680 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210330/f377e026/attachment-0001.bin>


More information about the llvm-commits mailing list