mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-10 13:48:44 +00:00
Use early returns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82554 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -83,7 +83,9 @@ void ExactHazardRecognizer::dumpScoreboard() {
|
||||
}
|
||||
|
||||
ExactHazardRecognizer::HazardType ExactHazardRecognizer::getHazardType(SUnit *SU) {
|
||||
if (!ItinData.isEmpty()) {
|
||||
if (ItinData.isEmpty())
|
||||
return NoHazard;
|
||||
|
||||
unsigned cycle = 0;
|
||||
|
||||
// Use the itinerary for the underlying instruction to check for
|
||||
@ -111,13 +113,14 @@ ExactHazardRecognizer::HazardType ExactHazardRecognizer::getHazardType(SUnit *SU
|
||||
// Advance the cycle to the next stage.
|
||||
cycle += IS->getNextCycles();
|
||||
}
|
||||
}
|
||||
|
||||
return NoHazard;
|
||||
}
|
||||
|
||||
void ExactHazardRecognizer::EmitInstruction(SUnit *SU) {
|
||||
if (!ItinData.isEmpty()) {
|
||||
if (ItinData.isEmpty())
|
||||
return;
|
||||
|
||||
unsigned cycle = 0;
|
||||
|
||||
// Use the itinerary for the underlying instruction to reserve FU's
|
||||
@ -152,7 +155,6 @@ void ExactHazardRecognizer::EmitInstruction(SUnit *SU) {
|
||||
|
||||
DEBUG(dumpScoreboard());
|
||||
}
|
||||
}
|
||||
|
||||
void ExactHazardRecognizer::AdvanceCycle() {
|
||||
Scoreboard[ScoreboardHead] = 0;
|
||||
|
Reference in New Issue
Block a user