diff options
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp index b5e4ad9cdee..25e5b0ee4c0 100644 --- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp @@ -1313,7 +1313,7 @@ namespace {          }        } -      if (SU->NumSuccs) { +      if (SU->NumSuccs && N->getOpcode() != ISD::CopyToReg) {          unsigned NumDefs = TII->get(N->getMachineOpcode()).getNumDefs();          for (unsigned i = 0; i != NumDefs; ++i) {            EVT VT = N->getValueType(i); @@ -1394,7 +1394,7 @@ namespace {          }        } -      if (SU->NumSuccs) { +      if (SU->NumSuccs && N->getOpcode() != ISD::CopyToReg) {          unsigned NumDefs = TII->get(N->getMachineOpcode()).getNumDefs();          for (unsigned i = NumDefs, e = N->getNumValues(); i != e; ++i) {            EVT VT = N->getValueType(i);  | 

