mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
make it possible to custom lower TRUNCATE (needed for the CellSPU target)
llvm-svn: 60409
This commit is contained in:
parent
2a9747548e
commit
14310949e3
@ -3904,6 +3904,11 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
|
|||||||
case Legal:
|
case Legal:
|
||||||
Tmp1 = LegalizeOp(Node->getOperand(0));
|
Tmp1 = LegalizeOp(Node->getOperand(0));
|
||||||
Result = DAG.UpdateNodeOperands(Result, Tmp1);
|
Result = DAG.UpdateNodeOperands(Result, Tmp1);
|
||||||
|
if (TLI.getOperationAction(Node->getOpcode(), Node->getValueType(0)) ==
|
||||||
|
TargetLowering::Custom) {
|
||||||
|
Tmp1 = TLI.LowerOperation(Result, DAG);
|
||||||
|
if (Tmp1.getNode()) Result = Tmp1;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case Expand:
|
case Expand:
|
||||||
ExpandOp(Node->getOperand(0), Tmp1, Tmp2);
|
ExpandOp(Node->getOperand(0), Tmp1, Tmp2);
|
||||||
|
Loading…
Reference in New Issue
Block a user