forked from OSchip/llvm-project
[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
This commit is contained in:
parent
ae1bbea890
commit
31fddbac8f
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue