diff options
author | Owen Rodley <owen.rodley@gmail.com> | 2018-10-02 00:40:08 +0000 |
---|---|---|
committer | Owen Rodley <owen.rodley@gmail.com> | 2018-10-02 00:40:08 +0000 |
commit | ba4f15452961fc046d6332addc2b36c42387540c (patch) | |
tree | f61433c51570b61733cff94209f70ddb4d0be610 | |
parent | e937c6a746417992ef167c52835d90928c17a30a (diff) |
[MCA] Remove SM.hasNext() call in FetchStage::execute.
Summary:
This is redundant, as FetchStage::getNextInstruction already checks this
and returns llvm::ErrorSuccess() as appropriate.
NFC.
Reviewers: andreadb
Subscribers: gbedwell, llvm-commits
Differential Revision: https://reviews.llvm.org/D52642
-rw-r--r-- | llvm/tools/llvm-mca/lib/Stages/FetchStage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mca/lib/Stages/FetchStage.cpp b/llvm/tools/llvm-mca/lib/Stages/FetchStage.cpp index 99c0aab29d9..e2cdad37ee1 100644 --- a/llvm/tools/llvm-mca/lib/Stages/FetchStage.cpp +++ b/llvm/tools/llvm-mca/lib/Stages/FetchStage.cpp @@ -60,7 +60,7 @@ llvm::Error FetchStage::execute(InstRef & /*unused */) { } llvm::Error FetchStage::cycleStart() { - if (!CurrentInstruction && SM.hasNext()) + if (!CurrentInstruction) return getNextInstruction(); return llvm::ErrorSuccess(); } |