mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +00:00
Bug fix. Must also match ResNo when matching an operand with a user.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45028 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -326,7 +326,7 @@ void ScheduleDAG::EmitCopyFromReg(SDNode *Node, unsigned ResNo,
|
|||||||
} else {
|
} else {
|
||||||
for (unsigned i = 0, e = Use->getNumOperands(); i != e; ++i) {
|
for (unsigned i = 0, e = Use->getNumOperands(); i != e; ++i) {
|
||||||
SDOperand Op = Use->getOperand(i);
|
SDOperand Op = Use->getOperand(i);
|
||||||
if (Op.Val != Node)
|
if (Op.Val != Node || Op.ResNo != ResNo)
|
||||||
continue;
|
continue;
|
||||||
MVT::ValueType VT = Node->getValueType(Op.ResNo);
|
MVT::ValueType VT = Node->getValueType(Op.ResNo);
|
||||||
if (VT != MVT::Other && VT != MVT::Flag)
|
if (VT != MVT::Other && VT != MVT::Flag)
|
||||||
|
Reference in New Issue
Block a user