CopyFromReg starts a live range so its use should not be considered a floater.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 1 Nov 2006 22:17:06 +0000 (22:17 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 1 Nov 2006 22:17:06 +0000 (22:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31356 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp

index ad98383220288d988515a817d0e6c17b2851ec71..0e63817e23b14deec2e2205f14f0c705d20bef98 100644 (file)
@@ -555,7 +555,7 @@ static bool isFloater(const SUnit *SU) {
         SUnit *PredSU = I->first;
         unsigned Opc = PredSU->Node->getOpcode();
         if (Opc != ISD::EntryToken && Opc != ISD::TokenFactor &&
-            Opc != ISD::CopyFromReg && Opc != ISD::CopyToReg)
+            Opc != ISD::CopyToReg)
           return false;
       }
       return true;