[llvm] r336984 - [llvm-mca] Simplify the Pipeline constructor. NFC
Andrea Di Biagio via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 13 02:31:02 PDT 2018
Author: adibiagio
Date: Fri Jul 13 02:31:02 2018
New Revision: 336984
URL: http://llvm.org/viewvc/llvm-project?rev=336984&view=rev
Log:
[llvm-mca] Simplify the Pipeline constructor. NFC
Modified:
llvm/trunk/tools/llvm-mca/Context.cpp
llvm/trunk/tools/llvm-mca/Pipeline.h
Modified: llvm/trunk/tools/llvm-mca/Context.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/Context.cpp?rev=336984&r1=336983&r2=336984&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/Context.cpp (original)
+++ llvm/trunk/tools/llvm-mca/Context.cpp Fri Jul 13 02:31:02 2018
@@ -40,9 +40,7 @@ Context::createDefaultPipeline(const Pip
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);
Modified: llvm/trunk/tools/llvm-mca/Pipeline.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/Pipeline.h?rev=336984&r1=336983&r2=336984&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/Pipeline.h (original)
+++ llvm/trunk/tools/llvm-mca/Pipeline.h Fri Jul 13 02:31:02 2018
@@ -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);
More information about the llvm-commits
mailing list