[llvm] 3b3c013 - [MCA] Fixing bug that was causing LSUnit not to realize an instruction finished executing when the instruction has 0 latency.
Patrick Holland via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 20 10:34:33 PDT 2021
Author: Patrick Holland
Date: 2021-08-20T10:32:37-07:00
New Revision: 3b3c01348be0a78c465dec96d80b55f4d5658fd1
URL: https://github.com/llvm/llvm-project/commit/3b3c01348be0a78c465dec96d80b55f4d5658fd1
DIFF: https://github.com/llvm/llvm-project/commit/3b3c01348be0a78c465dec96d80b55f4d5658fd1.diff
LOG: [MCA] Fixing bug that was causing LSUnit not to realize an instruction finished executing when the instruction has 0 latency.
Differential Revision: https://reviews.llvm.org/D108443
Added:
Modified:
llvm/lib/MCA/Stages/InOrderIssueStage.cpp
Removed:
################################################################################
diff --git a/llvm/lib/MCA/Stages/InOrderIssueStage.cpp b/llvm/lib/MCA/Stages/InOrderIssueStage.cpp
index 0b71f7d10a62..fa5c0fc66b9e 100644
--- a/llvm/lib/MCA/Stages/InOrderIssueStage.cpp
+++ b/llvm/lib/MCA/Stages/InOrderIssueStage.cpp
@@ -261,6 +261,7 @@ llvm::Error InOrderIssueStage::tryIssue(InstRef &IR) {
// the execution and retirement now.
if (IS.isExecuted()) {
PRF.onInstructionExecuted(&IS);
+ LSU.onInstructionExecuted(IR);
notifyEvent<HWInstructionEvent>(
HWInstructionEvent(HWInstructionEvent::Executed, IR));
LLVM_DEBUG(dbgs() << "[E] Instruction #" << IR << " is executed\n");
More information about the llvm-commits
mailing list