[Hexagon] Removing more V4 predicates since V4 is the required minimum.
[oota-llvm.git] / lib / Target / Hexagon / HexagonCopyToCombine.cpp
index e850804055b172d36aaeffc9b8407491b791821d..dd193f9bde9522d2a41921f477d1c366ad502582 100644 (file)
@@ -179,18 +179,6 @@ static bool areCombinableOperations(const TargetRegisterInfo *TRI,
           LowRegInst->getOpcode() == Hexagon::TFRI_V4) &&
          "Assume individual instructions are of a combinable type");
 
-  const HexagonRegisterInfo *QRI =
-    static_cast<const HexagonRegisterInfo *>(TRI);
-
-  // V4 added some combine variations (mixed immediate and register source
-  // operands), if we are on < V4 we can only combine 2 register-to-register
-  // moves and 2 immediate-to-register moves. We also don't have
-  // constant-extenders.
-  if (!QRI->Subtarget.hasV4TOps())
-    return HighRegInst->getOpcode() == LowRegInst->getOpcode() &&
-      !isGreaterThan8BitTFRI(HighRegInst) &&
-      !isGreaterThan6BitTFRI(LowRegInst);
-
   // There is no combine of two constant extended values.
   if ((HighRegInst->getOpcode() == Hexagon::TFRI_V4 ||
        isGreaterThan8BitTFRI(HighRegInst)) &&