diff --git a/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp b/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp index 6860a7cd07b78..f897cc7855d2d 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp @@ -1111,7 +1111,7 @@ Instruction *InstCombinerImpl::foldAggregateConstructionIntoAggregateReuse( // For each predecessor, what is the source aggregate, // from which all the elements were originally extracted from? // Note that we want for the map to have stable iteration order! - SmallDenseMap SourceAggregates; + SmallMapVector SourceAggregates; bool FoundSrcAgg = false; for (BasicBlock *Pred : Preds) { std::pair IV =