diff options
author | Matt Davis <Matthew.Davis@sony.com> | 2018-06-22 21:35:26 +0000 |
---|---|---|
committer | Matt Davis <Matthew.Davis@sony.com> | 2018-06-22 21:35:26 +0000 |
commit | 5db13ccfe97c4ec1baf150c25674ac8f2e9d55b1 (patch) | |
tree | a2e78deb42a410ba5d795509819103a2d23ae265 /tools/llvm-mca | |
parent | 3a06bb23c2056518be6c91826ffbed2d409c3706 (diff) |
[llvm-mca] Remove unnecessary include and forward decl in RCU. NFC.
The DispatchUnit is no longer a dependency of RCU, so this patch removes a
stale include and forward decl. This patch also cleans up some comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335392 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-mca')
-rw-r--r-- | tools/llvm-mca/RetireControlUnit.cpp | 1 | ||||
-rw-r--r-- | tools/llvm-mca/RetireControlUnit.h | 7 |
2 files changed, 3 insertions, 5 deletions
diff --git a/tools/llvm-mca/RetireControlUnit.cpp b/tools/llvm-mca/RetireControlUnit.cpp index d4c42742c42..123058541f2 100644 --- a/tools/llvm-mca/RetireControlUnit.cpp +++ b/tools/llvm-mca/RetireControlUnit.cpp @@ -13,7 +13,6 @@ //===----------------------------------------------------------------------===// #include "RetireControlUnit.h" -#include "DispatchStage.h" #include "llvm/Support/Debug.h" using namespace llvm; diff --git a/tools/llvm-mca/RetireControlUnit.h b/tools/llvm-mca/RetireControlUnit.h index eb2593d7215..da1f59da3e8 100644 --- a/tools/llvm-mca/RetireControlUnit.h +++ b/tools/llvm-mca/RetireControlUnit.h @@ -23,15 +23,14 @@ namespace mca { -class DispatchStage; - /// This class tracks which instructions are in-flight (i.e., dispatched but not /// retired) in the OoO backend. // /// This class checks on every cycle if/which instructions can be retired. /// Instructions are retired in program order. -/// In the event of instruction retired, the DispatchStage object that owns +/// In the event of an instruction being retired, the pipeline that owns /// this RetireControlUnit (RCU) gets notified. +/// /// On instruction retired, register updates are all architecturally /// committed, and any temporary registers originally allocated for the /// retired instruction are freed. @@ -39,7 +38,7 @@ struct RetireControlUnit { // A RUToken is created by the RCU for every instruction dispatched to the // schedulers. These "tokens" are managed by the RCU in its token Queue. // - // On evey cycle ('cycleEvent'), the RCU iterates through the token queue + // On every cycle ('cycleEvent'), the RCU iterates through the token queue // looking for any token with its 'Executed' flag set. If a token has that // flag set, then the instruction has reached the write-back stage and will // be retired by the RCU. |