mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-12 23:37:33 +00:00
Fix broken CellSPU lowering, re-instate braces in Legalize
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54168 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6d399bdea2
commit
24dc346a16
@ -2976,12 +2976,10 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
|
||||
case TargetLowering::Legal: break;
|
||||
case TargetLowering::Custom:
|
||||
Tmp1 = TLI.LowerOperation(Result, DAG);
|
||||
if (Tmp1.Val)
|
||||
// FIXME: these braces are correct, but breaks CellSPU codegen.
|
||||
//{
|
||||
if (Tmp1.Val) {
|
||||
Result = Tmp1;
|
||||
break;
|
||||
//}
|
||||
}
|
||||
// Fall through if the custom lower can't deal with the operation
|
||||
case TargetLowering::Expand: {
|
||||
MVT VT = Op.getValueType();
|
||||
|
@ -2481,8 +2481,9 @@ LowerByteImmed(SDValue Op, SelectionDAG &DAG) {
|
||||
DAG.getNode(ISD::BUILD_VECTOR, VT, tcVec, tcVecSize));
|
||||
}
|
||||
}
|
||||
|
||||
return SDValue();
|
||||
// These operations (AND, OR, XOR) are legal, they just couldn't be custom
|
||||
// lowered. Return the operation, rather than a null SDValue.
|
||||
return Op;
|
||||
}
|
||||
|
||||
//! Lower i32 multiplication
|
||||
|
Loading…
x
Reference in New Issue
Block a user