OSDN Git Service

[Hexagon] Remove duplicated code, NFC
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Fri, 6 Apr 2018 18:10:13 +0000 (18:10 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Fri, 6 Apr 2018 18:10:13 +0000 (18:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329436 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Hexagon/HexagonVLIWPacketizer.cpp

index 135e90b..ac232d4 100644 (file)
@@ -1845,15 +1845,6 @@ bool HexagonPacketizerList::producesStall(const MachineInstr &I) {
         return true;
   }
 
-  // Check if the latency is greater than one between this instruction and any
-  // instruction in the previous packet.
-  for (auto J : OldPacketMIs) {
-    SUnit *SUJ = MIToSUnit[J];
-    for (auto &Pred : SUI->Preds)
-      if (Pred.getSUnit() == SUJ && Pred.getLatency() > 1)
-        return true;
-  }
-
   return false;
 }