mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-09 21:50:50 +00:00
Allow custom lowering of fabs. I forgot to check in this change which
caused several test failures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25852 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c03468bafa
commit
59ad781e01
@ -2022,9 +2022,14 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
|||||||
switch (TLI.getOperationAction(Node->getOpcode(), Node->getValueType(0))) {
|
switch (TLI.getOperationAction(Node->getOpcode(), Node->getValueType(0))) {
|
||||||
case TargetLowering::Promote:
|
case TargetLowering::Promote:
|
||||||
case TargetLowering::Custom:
|
case TargetLowering::Custom:
|
||||||
assert(0 && "Cannot promote/custom handle this yet!");
|
isCustom = true;
|
||||||
|
// FALLTHROUGH
|
||||||
case TargetLowering::Legal:
|
case TargetLowering::Legal:
|
||||||
Result = DAG.UpdateNodeOperands(Result, Tmp1);
|
Result = DAG.UpdateNodeOperands(Result, Tmp1);
|
||||||
|
if (isCustom) {
|
||||||
|
Tmp1 = TLI.LowerOperation(Result, DAG);
|
||||||
|
if (Tmp1.Val) Result = Tmp1;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case TargetLowering::Expand:
|
case TargetLowering::Expand:
|
||||||
switch (Node->getOpcode()) {
|
switch (Node->getOpcode()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user