Skip to content

Commit

Permalink
fix typo and set more reasonable branch misprediction latency penalty
Browse files Browse the repository at this point in the history
  • Loading branch information
andrej committed Nov 16, 2024
1 parent 358d162 commit 15a4547
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CustomStages/MCADFetchDelayStage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ llvm::Error MCADFetchDelayStage::execute(llvm::mca::InstRef &IR) {
LLVM_DEBUG(dbgs() << "[MCAD FetchDelayStage] Previous branch at ");
LLVM_DEBUG(dbgs().write_hex(instrAddr->addr));
LLVM_DEBUG(dbgs() << " mispredicted, delaying next instruction by "
<< delayCyclesLeft << "cycle(s).\n");
<< delayCyclesLeft << " cycle(s).\n");
} else {
LLVM_DEBUG(dbgs() << "[MCAD FetchDelayStage] Previous branch at ");
LLVM_DEBUG(dbgs().write_hex(instrAddr->addr));
Expand Down
4 changes: 2 additions & 2 deletions MCAWorker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ std::unique_ptr<mca::Pipeline> MCAWorker::createDefaultPipeline() {
MCAPO.StoreQueueSize,
MCAPO.AssumeNoAlias, &MDRegistry);
auto HWS = std::make_unique<Scheduler>(SM, *LSU);
auto BPU = std::make_unique<NaiveBranchPredictorUnit>(100);
auto BPU = std::make_unique<NaiveBranchPredictorUnit>(20);

// Create the pipeline stages.
auto Fetch = std::make_unique<EntryStage>(SrcMgr);
Expand Down Expand Up @@ -227,7 +227,7 @@ std::unique_ptr<mca::Pipeline> MCAWorker::createInOrderPipeline() {
auto LSU = std::make_unique<MCADLSUnit>(SM, MCAPO.LoadQueueSize,
MCAPO.StoreQueueSize,
MCAPO.AssumeNoAlias, &MDRegistry);
auto BPU = std::make_unique<NaiveBranchPredictorUnit>(100);
auto BPU = std::make_unique<NaiveBranchPredictorUnit>(20);

// Create the pipeline stages.
auto Entry = std::make_unique<EntryStage>(SrcMgr);
Expand Down

0 comments on commit 15a4547

Please sign in to comment.