mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Eliminate the need to do another iteration of the legalizer after inserting
a libcall. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25730 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7e871b28a2
commit
0e8ea71a4f
@ -2208,7 +2208,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
||||
// Floating point mod -> fmod libcall.
|
||||
const char *FnName = Node->getValueType(0) == MVT::f32 ? "fmodf":"fmod";
|
||||
SDOperand Dummy;
|
||||
Result = ExpandLibCall(FnName, Node, Dummy);
|
||||
Result = LegalizeOp(ExpandLibCall(FnName, Node, Dummy));
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -2624,7 +2624,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
||||
default: assert(0 && "Unreachable!");
|
||||
}
|
||||
SDOperand Dummy;
|
||||
Result = ExpandLibCall(FnName, Node, Dummy);
|
||||
Result = LegalizeOp(ExpandLibCall(FnName, Node, Dummy));
|
||||
break;
|
||||
}
|
||||
default:
|
||||
@ -3711,7 +3711,6 @@ SDOperand SelectionDAGLegalize::ExpandLibCall(const char *Name, SDNode *Node,
|
||||
}
|
||||
|
||||
SpliceCallInto(CallInfo.second, OutChain);
|
||||
NeedsAnotherIteration = true;
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user