mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Make custom lowering of ADD work correctly. This
fixes PR2476; patch by Richard Osborne. The same problem exists for a bunch of other operators, but I'm ignoring this because they will be automagically fixed when the new LegalizeTypes infrastructure lands, since it already solves this problem centrally. llvm-svn: 52610
This commit is contained in:
parent
369401ef95
commit
d1d3e67d30
@ -6374,9 +6374,9 @@ void SelectionDAGLegalize::ExpandOp(SDOperand Op, SDOperand &Lo, SDOperand &Hi){
|
||||
// If the target wants to custom expand this, let them.
|
||||
if (TLI.getOperationAction(Node->getOpcode(), VT) ==
|
||||
TargetLowering::Custom) {
|
||||
Op = TLI.LowerOperation(Op, DAG);
|
||||
if (Op.Val) {
|
||||
ExpandOp(Op, Lo, Hi);
|
||||
SDOperand Result = TLI.LowerOperation(Op, DAG);
|
||||
if (Result.Val) {
|
||||
ExpandOp(Result, Lo, Hi);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user