diff --git a/polly/include/polly/CodeGen/BlockGenerators.h b/polly/include/polly/CodeGen/BlockGenerators.h --- a/polly/include/polly/CodeGen/BlockGenerators.h +++ b/polly/include/polly/CodeGen/BlockGenerators.h @@ -34,7 +34,7 @@ /// Map types to resolve scalar dependences. /// ///@{ - using AllocaMapTy = DenseMap>; + using AllocaMapTy = MapVector>; /// Simple vector of instructions to store escape users. using EscapeUserVectorTy = SmallVector; diff --git a/polly/include/polly/CodeGen/IslNodeBuilder.h b/polly/include/polly/CodeGen/IslNodeBuilder.h --- a/polly/include/polly/CodeGen/IslNodeBuilder.h +++ b/polly/include/polly/CodeGen/IslNodeBuilder.h @@ -288,7 +288,7 @@ /// Set to remember materialized invariant loads. /// /// An invariant load is identified by its pointer (the SCEV) and its type. - SmallSet, 16> PreloadedPtrs; + SmallSetVector, 16> PreloadedPtrs; /// Preload the memory access at @p AccessRange with @p Build. /// diff --git a/polly/lib/CodeGen/IslNodeBuilder.cpp b/polly/lib/CodeGen/IslNodeBuilder.cpp --- a/polly/lib/CodeGen/IslNodeBuilder.cpp +++ b/polly/lib/CodeGen/IslNodeBuilder.cpp @@ -1335,7 +1335,7 @@ // non-finite loop constraints. In such a case we have to bail out and insert // a "false" runtime check that will cause the original code to be executed. auto PtrId = std::make_pair(IAClass.IdentifyingPointer, IAClass.AccessType); - if (!PreloadedPtrs.insert(PtrId).second) + if (!PreloadedPtrs.insert(PtrId)) return false; // The execution context of the IAClass.