diff options
| author | Matt Davis <Matthew.Davis@sony.com> | 2018-08-29 00:34:32 +0000 |
|---|---|---|
| committer | Matt Davis <Matthew.Davis@sony.com> | 2018-08-29 00:34:32 +0000 |
| commit | 15ecfbf1f6bb73ab59ae1e425ad2e8453c9b7f6c (patch) | |
| tree | 28482f5327e36e58fa549fe382a09a4eb12c6f00 /llvm/tools/llvm-mca/lib/Context.cpp | |
| parent | 67d0488934a30e1d23361f433a4525c8d610e673 (diff) | |
| download | bcm5719-llvm-15ecfbf1f6bb73ab59ae1e425ad2e8453c9b7f6c.tar.gz bcm5719-llvm-15ecfbf1f6bb73ab59ae1e425ad2e8453c9b7f6c.zip | |
[llvm-mca] Move the initialization of Pipeline. NFC.
Code cleanup to make the pipeline creation routine easier to read.
llvm-svn: 340887
Diffstat (limited to 'llvm/tools/llvm-mca/lib/Context.cpp')
| -rw-r--r-- | llvm/tools/llvm-mca/lib/Context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-mca/lib/Context.cpp b/llvm/tools/llvm-mca/lib/Context.cpp index 31c09dce912..d2cb27fecec 100644 --- a/llvm/tools/llvm-mca/lib/Context.cpp +++ b/llvm/tools/llvm-mca/lib/Context.cpp @@ -40,8 +40,7 @@ Context::createDefaultPipeline(const PipelineOptions &Opts, InstrBuilder &IB, Opts.AssumeNoAlias); auto HWS = llvm::make_unique<Scheduler>(SM, LSU.get()); - // Create the pipeline and its stages. - auto StagePipeline = llvm::make_unique<Pipeline>(); + // Create the pipeline stages. auto Fetch = llvm::make_unique<FetchStage>(IB, SrcMgr); auto Dispatch = llvm::make_unique<DispatchStage>( STI, MRI, Opts.RegisterFileSize, Opts.DispatchWidth, *RCU, *PRF); @@ -55,6 +54,7 @@ Context::createDefaultPipeline(const PipelineOptions &Opts, InstrBuilder &IB, addHardwareUnit(std::move(HWS)); // Build the pipeline. + auto StagePipeline = llvm::make_unique<Pipeline>(); StagePipeline->appendStage(std::move(Fetch)); StagePipeline->appendStage(std::move(Dispatch)); StagePipeline->appendStage(std::move(Execute)); |

