commit | 860e7cdab9d5eceda5ac52ae0ddfb4bdab0067f2 | [log] [tgz] |
---|---|---|
author | Patrik Hagglund <patrik.h.hagglund@ericsson.com> | Thu Dec 13 18:45:35 2012 +0000 |
committer | Patrik Hagglund <patrik.h.hagglund@ericsson.com> | Thu Dec 13 18:45:35 2012 +0000 |
tree | cc0de031414033493f26e82345b6d77ba0a8b0d4 | |
parent | d14baf450b17d47c80950b59e3dd8844b79821f7 [diff] [blame] |
Change TargetLowering::getRepRegClassFor to take an MVT, instead of EVT. Accordingly, change RegDefIter to contain MVTs instead of EVTs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170140 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp index 057450d..b22440d 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
@@ -562,7 +562,7 @@ for (;DefIdx < NodeNumDefs; ++DefIdx) { if (!Node->hasAnyUseOfValue(DefIdx)) continue; - ValueType = Node->getValueType(DefIdx); + ValueType = Node->getSimpleValueType(DefIdx); ++DefIdx; return; // Found a normal regdef. }