[polly] r249268 - IRBuilder: Use AssertingVH
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 4 03:18:56 PDT 2015
Author: grosser
Date: Sun Oct 4 05:18:56 2015
New Revision: 249268
URL: http://llvm.org/viewvc/llvm-project?rev=249268&view=rev
Log:
IRBuilder: Use AssertingVH
Modified:
polly/trunk/include/polly/CodeGen/IRBuilder.h
polly/trunk/include/polly/CodeGen/LoopGenerators.h
Modified: polly/trunk/include/polly/CodeGen/IRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/IRBuilder.h?rev=249268&r1=249267&r2=249268&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/IRBuilder.h (original)
+++ polly/trunk/include/polly/CodeGen/IRBuilder.h Sun Oct 4 05:18:56 2015
@@ -72,7 +72,8 @@ public:
///
/// @param NewMap A map from new base pointers to original base pointers.
void addAlternativeAliasBases(
- llvm::ValueMap<llvm::Value *, llvm::Value *> &NewMap) {
+ llvm::DenseMap<llvm::AssertingVH<llvm::Value>,
+ llvm::AssertingVH<llvm::Value>> &NewMap) {
AlternativeAliasBases.insert(NewMap.begin(), NewMap.end());
}
@@ -93,12 +94,14 @@ private:
llvm::MDNode *AliasScopeDomain;
/// @brief A map from base pointers to its alias scope.
- llvm::DenseMap<llvm::Value *, llvm::MDNode *> AliasScopeMap;
+ llvm::DenseMap<llvm::AssertingVH<llvm::Value>, llvm::MDNode *> AliasScopeMap;
/// @brief A map from base pointers to an alias scope list of other pointers.
- llvm::DenseMap<llvm::Value *, llvm::MDNode *> OtherAliasScopeListMap;
+ llvm::DenseMap<llvm::AssertingVH<llvm::Value>, llvm::MDNode *>
+ OtherAliasScopeListMap;
- llvm::ValueMap<llvm::Value *, llvm::Value *> AlternativeAliasBases;
+ llvm::DenseMap<llvm::AssertingVH<llvm::Value>, llvm::AssertingVH<llvm::Value>>
+ AlternativeAliasBases;
};
/// @brief Add Polly specifics when running IRBuilder.
Modified: polly/trunk/include/polly/CodeGen/LoopGenerators.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/LoopGenerators.h?rev=249268&r1=249267&r2=249268&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/LoopGenerators.h (original)
+++ polly/trunk/include/polly/CodeGen/LoopGenerators.h Sun Oct 4 05:18:56 2015
@@ -96,7 +96,8 @@ Value *createLoop(Value *LowerBound, Val
/// }
class ParallelLoopGenerator {
public:
- using ValueToValueMapTy = llvm::ValueMap<Value *, Value *>;
+ using ValueToValueMapTy =
+ llvm::DenseMap<AssertingVH<Value>, AssertingVH<Value>>;
/// @brief Create a parallel loop generator for the current function.
ParallelLoopGenerator(PollyIRBuilder &Builder, Pass *P, LoopInfo &LI,
More information about the llvm-commits
mailing list