[llvm-mca] Simplify the Pipeline constructor. NFC

llvm-svn: 336984
This commit is contained in:
Andrea Di Biagio 2018-07-13 09:31:02 +00:00
parent 3af21f0841
commit 2c65d72a0f
2 changed files with 2 additions and 7 deletions

View File

@ -40,9 +40,7 @@ Context::createDefaultPipeline(const PipelineOptions &Opts, InstrBuilder &IB,
SM, Opts.LoadQueueSize, Opts.StoreQueueSize, Opts.AssumeNoAlias);
// Create the pipeline and its stages.
auto P = llvm::make_unique<Pipeline>(
Opts.DispatchWidth, Opts.RegisterFileSize, Opts.LoadQueueSize,
Opts.StoreQueueSize, Opts.AssumeNoAlias);
auto P = llvm::make_unique<Pipeline>();
auto F = llvm::make_unique<FetchStage>(IB, SrcMgr);
auto D = llvm::make_unique<DispatchStage>(
STI, MRI, Opts.RegisterFileSize, Opts.DispatchWidth, *RCU, *PRF, *HWS);

View File

@ -69,10 +69,7 @@ class Pipeline {
void notifyCycleEnd();
public:
Pipeline(unsigned DispatchWidth = 0, unsigned RegisterFileSize = 0,
unsigned LoadQueueSize = 0, unsigned StoreQueueSize = 0,
bool AssumeNoAlias = false)
: Cycles(0) {}
Pipeline() : Cycles(0) {}
void appendStage(std::unique_ptr<Stage> S) { Stages.push_back(std::move(S)); }
void run();
void addEventListener(HWEventListener *Listener);