mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Fix RET of promoted values on targets that custom expand RET to a target node.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25794 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
37dd6f1b79
commit
6862dbc446
@ -1056,8 +1056,8 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (TLI.getOperationAction(Node->getOpcode(),
|
if (Result.getOpcode() == ISD::RET) {
|
||||||
Node->getValueType(0))) {
|
switch (TLI.getOperationAction(Result.getOpcode(), MVT::Other)) {
|
||||||
default: assert(0 && "This action is not supported yet!");
|
default: assert(0 && "This action is not supported yet!");
|
||||||
case TargetLowering::Legal: break;
|
case TargetLowering::Legal: break;
|
||||||
case TargetLowering::Custom:
|
case TargetLowering::Custom:
|
||||||
@ -1065,6 +1065,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
|||||||
if (Tmp1.Val) Result = Tmp1;
|
if (Tmp1.Val) Result = Tmp1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case ISD::STORE: {
|
case ISD::STORE: {
|
||||||
Tmp1 = LegalizeOp(Node->getOperand(0)); // Legalize the chain.
|
Tmp1 = LegalizeOp(Node->getOperand(0)); // Legalize the chain.
|
||||||
|
Loading…
Reference in New Issue
Block a user