From e6b8bf8c4a74d48ad5c46c37f3754361acdeda61 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Fri, 24 Jun 2011 23:02:22 +0000 Subject: [PATCH] The scheduler needs to be aware on the existence of untyped nodes when it performs type propagation for EXTRACT_SUBREG. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133838 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp index dbc623b01ea..f03bf10a48f 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp @@ -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(); } -- 2.34.1