[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:
Owen Rodley 2018-10-02 00:40:08 +00:00
parent ae1bbea890
commit 31fddbac8f
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}