Teach legalize how to promote sext_inreg to fix a problem Andrew pointed

out to me.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24644 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-12-09 17:32:47 +00:00
parent cbc09c8eaa
commit 5e3c5b4e13

View File

@ -2404,6 +2404,11 @@ SDOperand SelectionDAGLegalize::PromoteOp(SDOperand Op) {
}
break;
case ISD::SIGN_EXTEND_INREG:
Result = PromoteOp(Node->getOperand(0));
Result = DAG.getNode(ISD::SIGN_EXTEND_INREG, NVT, Result,
Node->getOperand(1));
break;
case ISD::FP_TO_SINT:
case ISD::FP_TO_UINT:
switch (getTypeAction(Node->getOperand(0).getValueType())) {