1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

[SystemZ] NFC refactoring in SystemZHazardRecognizer.

Use Reset() after emitting a call.

Review: Ulrich Weigand
llvm-svn: 326881
This commit is contained in:
Jonas Paulsson 2018-03-07 08:57:09 +00:00
parent e46b765907
commit 0beef0f361

View File

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