[CodeGen] Deterministic aliasing metadata order. NFC.

Replace DenseMap by a MapVector to enure that aliasing metadata is
always emitted in the same order.

llvm-svn: 305674
This commit is contained in:
Michael Kruse 2017-06-19 10:19:23 +00:00
parent 9873c4b509
commit 4aac459ca6

View File

@ -15,6 +15,7 @@
#ifndef POLLY_CODEGEN_IRBUILDER_H
#define POLLY_CODEGEN_IRBUILDER_H
#include "llvm/ADT/MapVector.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/ValueMap.h"
@ -107,7 +108,7 @@ private:
llvm::MDNode *AliasScopeDomain;
/// A map from base pointers to its alias scope.
llvm::DenseMap<llvm::AssertingVH<llvm::Value>, llvm::MDNode *> AliasScopeMap;
llvm::MapVector<llvm::AssertingVH<llvm::Value>, llvm::MDNode *> AliasScopeMap;
/// A map from base pointers to an alias scope list of other pointers.
llvm::DenseMap<llvm::AssertingVH<llvm::Value>, llvm::MDNode *>