[llvm] r326881 - [SystemZ] NFC refactoring in SystemZHazardRecognizer.

Jonas Paulsson via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 7 00:57:09 PST 2018


Author: jonpa
Date: Wed Mar  7 00:57:09 2018
New Revision: 326881

URL: http://llvm.org/viewvc/llvm-project?rev=326881&view=rev
Log:
[SystemZ]  NFC refactoring in SystemZHazardRecognizer.

Use Reset() after emitting a call.

Review: Ulrich Weigand

Modified:
    llvm/trunk/lib/Target/SystemZ/SystemZHazardRecognizer.cpp

Modified: llvm/trunk/lib/Target/SystemZ/SystemZHazardRecognizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/SystemZ/SystemZHazardRecognizer.cpp?rev=326881&r1=326880&r2=326881&view=diff
==============================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZHazardRecognizer.cpp (original)
+++ llvm/trunk/lib/Target/SystemZ/SystemZHazardRecognizer.cpp Wed Mar  7 00:57:09 2018
@@ -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;
   }
 




More information about the llvm-commits mailing list