aboutsummaryrefslogtreecommitdiff
path: root/tools/llvm-mca
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-07-13 09:31:02 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-07-13 09:31:02 +0000
commited770b652cba900f0934682f7f295ad115b8395d (patch)
treeccb959675ca014d49f7e20cb9c4f86a7ef8a2aa3 /tools/llvm-mca
parent27babdf37a5890c2f27ba231a4acd29983187f4d (diff)
[llvm-mca] Simplify the Pipeline constructor. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336984 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-mca')
-rw-r--r--tools/llvm-mca/Context.cpp4
-rw-r--r--tools/llvm-mca/Pipeline.h5
2 files changed, 2 insertions, 7 deletions
diff --git a/tools/llvm-mca/Context.cpp b/tools/llvm-mca/Context.cpp
index 8bfc56bc569..685714e64b9 100644
--- a/tools/llvm-mca/Context.cpp
+++ b/tools/llvm-mca/Context.cpp
@@ -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);
diff --git a/tools/llvm-mca/Pipeline.h b/tools/llvm-mca/Pipeline.h
index ca355784b1e..6bafc242b10 100644
--- a/tools/llvm-mca/Pipeline.h
+++ b/tools/llvm-mca/Pipeline.h
@@ -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);