diff --git a/llvm/lib/Transforms/IPO/Inliner.cpp b/llvm/lib/Transforms/IPO/Inliner.cpp --- a/llvm/lib/Transforms/IPO/Inliner.cpp +++ b/llvm/lib/Transforms/IPO/Inliner.cpp @@ -158,10 +158,6 @@ ":. (default)")), cl::desc("How cgscc inline replay file is formatted"), cl::Hidden); -static cl::opt InlineEnablePriorityOrder( - "inline-enable-priority-order", cl::Hidden, cl::init(false), - cl::desc("Enable the priority inline order for the inliner")); - LegacyInlinerBase::LegacyInlinerBase(char &ID) : CallGraphSCCPass(ID) {} LegacyInlinerBase::LegacyInlinerBase(char &ID, bool InsertLifetime) @@ -781,11 +777,8 @@ // this model, but it is uniformly spread across all the functions in the SCC // and eventually they all become too large to inline, rather than // incrementally maknig a single function grow in a super linear fashion. - std::unique_ptr>> Calls; - if (InlineEnablePriorityOrder) - Calls = std::make_unique>(); - else - Calls = std::make_unique>>(); + std::unique_ptr>> Calls = + std::make_unique>>(); assert(Calls != nullptr && "Expected an initialized InlineOrder"); // Populate the initial list of calls in this SCC.