Index: llvm/lib/CodeGen/CalcSpillWeights.cpp =================================================================== --- llvm/lib/CodeGen/CalcSpillWeights.cpp +++ llvm/lib/CodeGen/CalcSpillWeights.cpp @@ -278,7 +278,7 @@ if (TargetHint.first == 0 && TargetHint.second) MRI.clearSimpleHint(LI.reg()); - std::set HintedRegs; + SmallSet HintedRegs; for (const auto &Hint : CopyHints) { if (!HintedRegs.insert(Hint.Reg).second || (TargetHint.first != 0 && Hint.Reg == TargetHint.second))