diff options
| author | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-06-24 12:09:12 +0000 |
|---|---|---|
| committer | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-06-24 12:09:12 +0000 |
| commit | 7e96b4dfce63f967f150c617f0a69ded9f1f7416 (patch) | |
| tree | 144b459e68478ae69b7946015a99501bb204b9fe /lib/Transforms/Vectorize/LoopVectorize.cpp | |
| parent | e5a30f0ca22cc1ba97478e9fadcdef02d341004e (diff) | |
| download | llvm-7e96b4dfce63f967f150c617f0a69ded9f1f7416.tar.gz llvm-7e96b4dfce63f967f150c617f0a69ded9f1f7416.tar.bz2 llvm-7e96b4dfce63f967f150c617f0a69ded9f1f7416.tar.xz | |
LoopVectorize: Use SetVector for the access set
We are creating the runtime checks using this set so we need a deterministic
iteration order.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184723 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize/LoopVectorize.cpp')
| -rw-r--r-- | lib/Transforms/Vectorize/LoopVectorize.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp index 67c4e42db6..2a8380613e 100644 --- a/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -49,6 +49,7 @@ #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/EquivalenceClasses.h" #include "llvm/ADT/MapVector.h" +#include "llvm/ADT/SetVector.h" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallSet.h" #include "llvm/ADT/SmallVector.h" @@ -2888,7 +2889,7 @@ public: DenseSet<MemAccessInfo> &getDependenciesToCheck() { return CheckDeps; } private: - typedef DenseSet<MemAccessInfo> PtrAccessSet; + typedef SetVector<MemAccessInfo> PtrAccessSet; typedef DenseMap<Value*, MemAccessInfo> UnderlyingObjToAccessMap; /// \brief Go over all memory access or only the deferred ones if |
