summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2017-06-27 15:46:42 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2017-06-27 15:46:42 +0000
commit5d1c3f6adda1d23b4f200d81be8693ffab860b8d (patch)
treedcf9a1a156c9ccf585b9d2dfe94e8ce81cfe468d
parentd66ee0f9a75e37a2836bd5e48154e8ae1958269c (diff)
downloadbcm5719-llvm-5d1c3f6adda1d23b4f200d81be8693ffab860b8d.tar.gz
bcm5719-llvm-5d1c3f6adda1d23b4f200d81be8693ffab860b8d.zip
[OPENMP] Use MapVector instead of DenseMap for stable codegen, NFC.
llvm-svn: 306419
-rw-r--r--clang/include/clang/AST/OpenMPClause.h3
-rw-r--r--clang/lib/CodeGen/CGOpenMPRuntime.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/clang/include/clang/AST/OpenMPClause.h b/clang/include/clang/AST/OpenMPClause.h
index f977e63e04f..14e73819f53 100644
--- a/clang/include/clang/AST/OpenMPClause.h
+++ b/clang/include/clang/AST/OpenMPClause.h
@@ -20,6 +20,7 @@
#include "clang/AST/Stmt.h"
#include "clang/Basic/OpenMPKinds.h"
#include "clang/Basic/SourceLocation.h"
+#include "llvm/ADT/MapVector.h"
namespace clang {
@@ -3001,7 +3002,7 @@ protected:
// Organize the components by declaration and retrieve the original
// expression. Original expressions are always the first component of the
// mappable component list.
- llvm::DenseMap<ValueDecl *, SmallVector<MappableExprComponentListRef, 8>>
+ llvm::MapVector<ValueDecl *, SmallVector<MappableExprComponentListRef, 8>>
ComponentListMap;
{
auto CI = ComponentLists.begin();
diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
index 8d83255ac13..0a8fd17c332 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -5603,7 +5603,7 @@ public:
// We have to process the component lists that relate with the same
// declaration in a single chunk so that we can generate the map flags
// correctly. Therefore, we organize all lists in a map.
- llvm::DenseMap<const ValueDecl *, SmallVector<MapInfo, 8>> Info;
+ llvm::MapVector<const ValueDecl *, SmallVector<MapInfo, 8>> Info;
// Helper function to fill the information map for the different supported
// clauses.
OpenPOWER on IntegriCloud