The scheduler needs to be aware on the existence of untyped nodes when it performs...
authorOwen Anderson <resistor@mac.com>
Fri, 24 Jun 2011 23:02:22 +0000 (23:02 +0000)
committerOwen Anderson <resistor@mac.com>
Fri, 24 Jun 2011 23:02:22 +0000 (23:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133838 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp

index dbc623b01ea8b1957690e7c8a82359dd18acfc1d..f03bf10a48faed511780331d75c43c4e77cf3213 100644 (file)
@@ -521,7 +521,8 @@ void ScheduleDAGSDNodes::RegDefIter::Advance() {
       if (!Node->hasAnyUseOfValue(DefIdx))
         continue;
       if (Node->isMachineOpcode() &&
-          Node->getMachineOpcode() == TargetOpcode::EXTRACT_SUBREG) {
+          Node->getMachineOpcode() == TargetOpcode::EXTRACT_SUBREG &&
+          Node->getOperand(0).getValueType() != MVT::untyped) {
         // Propagate the incoming (full-register) type. I doubt it's needed.
         ValueType = Node->getOperand(0).getValueType();
       }