diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h --- a/llvm/lib/Transforms/Vectorize/VPlan.h +++ b/llvm/lib/Transforms/Vectorize/VPlan.h @@ -1767,7 +1767,7 @@ // VPlan. External definitions must be immutable and hold a pointer to its // underlying IR that will be used to implement its structural comparison // (operators '==' and '<'). - SmallPtrSet VPExternalDefs; + SetVector VPExternalDefs; /// Represents the backedge taken count of the original loop, for folding /// the tail. @@ -1835,9 +1835,7 @@ /// Add \p VPVal to the pool of external definitions if it's not already /// in the pool. - void addExternalDef(VPValue *VPVal) { - VPExternalDefs.insert(VPVal); - } + void addExternalDef(VPValue *VPVal) { VPExternalDefs.insert(VPVal); } void addVPValue(Value *V) { assert(V && "Trying to add a null Value to VPlan");