[polly] r305674 - [CodeGen] Deterministic aliasing metadata order. NFC.
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 19 03:19:23 PDT 2017
Author: meinersbur
Date: Mon Jun 19 05:19:23 2017
New Revision: 305674
URL: http://llvm.org/viewvc/llvm-project?rev=305674&view=rev
Log:
[CodeGen] Deterministic aliasing metadata order. NFC.
Replace DenseMap by a MapVector to enure that aliasing metadata is
always emitted in the same order.
Modified:
polly/trunk/include/polly/CodeGen/IRBuilder.h
Modified: polly/trunk/include/polly/CodeGen/IRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/IRBuilder.h?rev=305674&r1=305673&r2=305674&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/IRBuilder.h (original)
+++ polly/trunk/include/polly/CodeGen/IRBuilder.h Mon Jun 19 05:19:23 2017
@@ -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 *>
More information about the llvm-commits
mailing list