mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
Make sure these get added into the codegenmap when appropriate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24566 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c5e6c649b5
commit
05f56a529c
@ -887,9 +887,10 @@ SDOperand PPCDAGToDAGISel::Select(SDOperand Op) {
|
|||||||
return CurDAG->SelectNodeTo(N, PPC::ADDI, MVT::i32,
|
return CurDAG->SelectNodeTo(N, PPC::ADDI, MVT::i32,
|
||||||
CurDAG->getTargetFrameIndex(FI, MVT::i32),
|
CurDAG->getTargetFrameIndex(FI, MVT::i32),
|
||||||
getI32Imm(0));
|
getI32Imm(0));
|
||||||
return CurDAG->getTargetNode(PPC::ADDI, MVT::i32,
|
return CodeGenMap[Op] =
|
||||||
CurDAG->getTargetFrameIndex(FI, MVT::i32),
|
CurDAG->getTargetNode(PPC::ADDI, MVT::i32,
|
||||||
getI32Imm(0));
|
CurDAG->getTargetFrameIndex(FI, MVT::i32),
|
||||||
|
getI32Imm(0));
|
||||||
}
|
}
|
||||||
case ISD::ConstantPool: {
|
case ISD::ConstantPool: {
|
||||||
Constant *C = cast<ConstantPoolSDNode>(N)->get();
|
Constant *C = cast<ConstantPoolSDNode>(N)->get();
|
||||||
@ -900,7 +901,7 @@ SDOperand PPCDAGToDAGISel::Select(SDOperand Op) {
|
|||||||
Tmp = CurDAG->getTargetNode(PPC::LIS, MVT::i32, CPI);
|
Tmp = CurDAG->getTargetNode(PPC::LIS, MVT::i32, CPI);
|
||||||
if (N->hasOneUse())
|
if (N->hasOneUse())
|
||||||
return CurDAG->SelectNodeTo(N, PPC::LA, MVT::i32, Tmp, CPI);
|
return CurDAG->SelectNodeTo(N, PPC::LA, MVT::i32, Tmp, CPI);
|
||||||
return CurDAG->getTargetNode(PPC::LA, MVT::i32, Tmp, CPI);
|
return CodeGenMap[Op] = CurDAG->getTargetNode(PPC::LA, MVT::i32, Tmp, CPI);
|
||||||
}
|
}
|
||||||
case ISD::FADD: {
|
case ISD::FADD: {
|
||||||
MVT::ValueType Ty = N->getValueType(0);
|
MVT::ValueType Ty = N->getValueType(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user