mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Follow the same routine to add target float expansion hook
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165707 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1245,17 +1245,16 @@ bool DAGTypeLegalizer::ExpandFloatOperand(SDNode *N, unsigned OpNo) {
|
||||
DEBUG(dbgs() << "Expand float operand: "; N->dump(&DAG); dbgs() << "\n");
|
||||
SDValue Res = SDValue();
|
||||
|
||||
if (TLI.getOperationAction(N->getOpcode(), N->getOperand(OpNo).getValueType())
|
||||
== TargetLowering::Custom)
|
||||
Res = TLI.LowerOperation(SDValue(N, 0), DAG);
|
||||
// See if the target wants to custom expand this node.
|
||||
if (CustomLowerNode(N, N->getOperand(OpNo).getValueType(), false))
|
||||
return false;
|
||||
|
||||
if (Res.getNode() == 0) {
|
||||
switch (N->getOpcode()) {
|
||||
default:
|
||||
#ifndef NDEBUG
|
||||
#ifndef NDEBUG
|
||||
dbgs() << "ExpandFloatOperand Op #" << OpNo << ": ";
|
||||
N->dump(&DAG); dbgs() << "\n";
|
||||
#endif
|
||||
#endif
|
||||
llvm_unreachable("Do not know how to expand this operator's operand!");
|
||||
|
||||
case ISD::BITCAST: Res = ExpandOp_BITCAST(N); break;
|
||||
@@ -1271,7 +1270,6 @@ bool DAGTypeLegalizer::ExpandFloatOperand(SDNode *N, unsigned OpNo) {
|
||||
case ISD::STORE: Res = ExpandFloatOp_STORE(cast<StoreSDNode>(N),
|
||||
OpNo); break;
|
||||
}
|
||||
}
|
||||
|
||||
// If the result is null, the sub-method took care of registering results etc.
|
||||
if (!Res.getNode()) return false;
|
||||
|
Reference in New Issue
Block a user