mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
Changed flag operand of ISD::FP_ROUND to TargetConstant as it should not get checked for legalisation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148275 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1752e45de9
commit
f57e1c29dd
@ -197,7 +197,7 @@ static SDValue getCopyFromParts(SelectionDAG &DAG, DebugLoc DL,
|
|||||||
// FP_ROUND's are always exact here.
|
// FP_ROUND's are always exact here.
|
||||||
if (ValueVT.bitsLT(Val.getValueType()))
|
if (ValueVT.bitsLT(Val.getValueType()))
|
||||||
return DAG.getNode(ISD::FP_ROUND, DL, ValueVT, Val,
|
return DAG.getNode(ISD::FP_ROUND, DL, ValueVT, Val,
|
||||||
DAG.getIntPtrConstant(1));
|
DAG.getTargetConstant(1, TLI.getPointerTy()));
|
||||||
|
|
||||||
return DAG.getNode(ISD::FP_EXTEND, DL, ValueVT, Val);
|
return DAG.getNode(ISD::FP_EXTEND, DL, ValueVT, Val);
|
||||||
}
|
}
|
||||||
@ -2691,7 +2691,8 @@ void SelectionDAGBuilder::visitFPTrunc(const User &I) {
|
|||||||
SDValue N = getValue(I.getOperand(0));
|
SDValue N = getValue(I.getOperand(0));
|
||||||
EVT DestVT = TLI.getValueType(I.getType());
|
EVT DestVT = TLI.getValueType(I.getType());
|
||||||
setValue(&I, DAG.getNode(ISD::FP_ROUND, getCurDebugLoc(),
|
setValue(&I, DAG.getNode(ISD::FP_ROUND, getCurDebugLoc(),
|
||||||
DestVT, N, DAG.getIntPtrConstant(0)));
|
DestVT, N,
|
||||||
|
DAG.getTargetConstant(0, TLI.getPointerTy())));
|
||||||
}
|
}
|
||||||
|
|
||||||
void SelectionDAGBuilder::visitFPExt(const User &I){
|
void SelectionDAGBuilder::visitFPExt(const User &I){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user