[llvm] r343555 - [MCA] Remove SM.hasNext() call in FetchStage::execute.
Owen Rodley via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 1 17:40:08 PDT 2018
Author: orodley
Date: Mon Oct 1 17:40:08 2018
New Revision: 343555
URL: http://llvm.org/viewvc/llvm-project?rev=343555&view=rev
Log:
[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
Modified:
llvm/trunk/tools/llvm-mca/lib/Stages/FetchStage.cpp
Modified: llvm/trunk/tools/llvm-mca/lib/Stages/FetchStage.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/lib/Stages/FetchStage.cpp?rev=343555&r1=343554&r2=343555&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/lib/Stages/FetchStage.cpp (original)
+++ llvm/trunk/tools/llvm-mca/lib/Stages/FetchStage.cpp Mon Oct 1 17:40:08 2018
@@ -60,7 +60,7 @@ llvm::Error FetchStage::execute(InstRef
}
llvm::Error FetchStage::cycleStart() {
- if (!CurrentInstruction && SM.hasNext())
+ if (!CurrentInstruction)
return getNextInstruction();
return llvm::ErrorSuccess();
}
More information about the llvm-commits
mailing list