summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp b/llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp
index 9a3fe3da530..a643b056528 100644
--- a/llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp
@@ -253,11 +253,8 @@ EmitInstruction(SUnit *SU) {
// After returning from a call, we don't know much about the state.
if (SU->isCall) {
DEBUG(dbgs() << "++ Clearing state after call.\n";);
- clearProcResCounters();
- LastFPdOpCycleIdx = UINT_MAX;
- CurrGroupSize += getNumDecoderSlots(SU);
- assert (CurrGroupSize <= 3);
- nextGroup();
+ Reset();
+ LastEmittedMI = SU->getInstr();
return;
}
OpenPOWER on IntegriCloud