forked from OSchip/llvm-project
[SDAG] Update the AVR backend for the SelectionDAG API changes in
r339740, fixing the build for this target. llvm-svn: 339748
This commit is contained in:
parent
33d8b95ef6
commit
139b35192a
|
@ -350,9 +350,7 @@ template <> bool AVRDAGToDAGISel::select<ISD::STORE>(SDNode *N) {
|
|||
SDNode *ResNode = CurDAG->getMachineNode(Opc, DL, MVT::Other, Ops);
|
||||
|
||||
// Transfer memory operands.
|
||||
MachineSDNode::mmo_iterator MemOp = MF->allocateMemRefsArray(1);
|
||||
MemOp[0] = ST->getMemOperand();
|
||||
cast<MachineSDNode>(ResNode)->setMemRefs(MemOp, MemOp + 1);
|
||||
CurDAG->setNodeMemRefs(cast<MachineSDNode>(ResNode), {ST->getMemOperand()});
|
||||
|
||||
ReplaceUses(SDValue(N, 0), SDValue(ResNode, 0));
|
||||
CurDAG->RemoveDeadNode(N);
|
||||
|
@ -407,9 +405,7 @@ template <> bool AVRDAGToDAGISel::select<ISD::LOAD>(SDNode *N) {
|
|||
}
|
||||
|
||||
// Transfer memory operands.
|
||||
MachineSDNode::mmo_iterator MemOp = MF->allocateMemRefsArray(1);
|
||||
MemOp[0] = LD->getMemOperand();
|
||||
cast<MachineSDNode>(ResNode)->setMemRefs(MemOp, MemOp + 1);
|
||||
CurDAG->setNodeMemRefs(cast<MachineSDNode>(ResNode), {LD->getMemOperand()});
|
||||
|
||||
ReplaceUses(SDValue(N, 0), SDValue(ResNode, 0));
|
||||
ReplaceUses(SDValue(N, 1), SDValue(ResNode, 1));
|
||||
|
|
Loading…
Reference in New Issue