summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorOwen Rodley <owen.rodley@gmail.com>2018-10-02 00:40:08 +0000
committerOwen Rodley <owen.rodley@gmail.com>2018-10-02 00:40:08 +0000
commit31fddbac8fa7ca0f18b6781a05346b447a607c4f (patch)
treed951e80164a2925e5f730ed9e09e7fe424defef8 /llvm/tools
parentae1bbea8906622d2863c0e65e51f0028c2a7613a (diff)
downloadbcm5719-llvm-31fddbac8fa7ca0f18b6781a05346b447a607c4f.tar.gz
bcm5719-llvm-31fddbac8fa7ca0f18b6781a05346b447a607c4f.zip
[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 llvm-svn: 343555
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llvm-mca/lib/Stages/FetchStage.cpp2
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();
}
OpenPOWER on IntegriCloud