1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

make it possible to custom lower TRUNCATE (needed for the CellSPU target)

llvm-svn: 60409
This commit is contained in:
Tilmann Scheller 2008-12-02 12:12:25 +00:00
parent 2a9747548e
commit 14310949e3

View File

@ -3904,6 +3904,11 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
case Legal:
Tmp1 = LegalizeOp(Node->getOperand(0));
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;
case Expand:
ExpandOp(Node->getOperand(0), Tmp1, Tmp2);