X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FTarget%2FHexagon%2FHexagonCopyToCombine.cpp;h=dd193f9bde9522d2a41921f477d1c366ad502582;hb=3bddb8b918a57c0cc6b1cb00b6c7d3926561d122;hp=e850804055b172d36aaeffc9b8407491b791821d;hpb=2eace6ebc531219e1f76afeb938e90092f0bcfb2;p=oota-llvm.git diff --git a/lib/Target/Hexagon/HexagonCopyToCombine.cpp b/lib/Target/Hexagon/HexagonCopyToCombine.cpp index e850804055b..dd193f9bde9 100644 --- a/lib/Target/Hexagon/HexagonCopyToCombine.cpp +++ b/lib/Target/Hexagon/HexagonCopyToCombine.cpp @@ -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(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)) &&