Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit ed770b6

Browse files
committed
[llvm-mca] Simplify the Pipeline constructor. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336984 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 27babdf commit ed770b6

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

tools/llvm-mca/Context.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ Context::createDefaultPipeline(const PipelineOptions &Opts, InstrBuilder &IB,
4040
SM, Opts.LoadQueueSize, Opts.StoreQueueSize, Opts.AssumeNoAlias);
4141

4242
// Create the pipeline and its stages.
43-
auto P = llvm::make_unique<Pipeline>(
44-
Opts.DispatchWidth, Opts.RegisterFileSize, Opts.LoadQueueSize,
45-
Opts.StoreQueueSize, Opts.AssumeNoAlias);
43+
auto P = llvm::make_unique<Pipeline>();
4644
auto F = llvm::make_unique<FetchStage>(IB, SrcMgr);
4745
auto D = llvm::make_unique<DispatchStage>(
4846
STI, MRI, Opts.RegisterFileSize, Opts.DispatchWidth, *RCU, *PRF, *HWS);

tools/llvm-mca/Pipeline.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,7 @@ class Pipeline {
6969
void notifyCycleEnd();
7070

7171
public:
72-
Pipeline(unsigned DispatchWidth = 0, unsigned RegisterFileSize = 0,
73-
unsigned LoadQueueSize = 0, unsigned StoreQueueSize = 0,
74-
bool AssumeNoAlias = false)
75-
: Cycles(0) {}
72+
Pipeline() : Cycles(0) {}
7673
void appendStage(std::unique_ptr<Stage> S) { Stages.push_back(std::move(S)); }
7774
void run();
7875
void addEventListener(HWEventListener *Listener);

0 commit comments

Comments
 (0)