mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
Clean up some bad code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32432 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2cbba89347
commit
b618230231
@ -4567,12 +4567,10 @@ void SelectionDAGLegalize::ExpandOp(SDOperand Op, SDOperand &Lo, SDOperand &Hi){
|
||||
Tmp = TLI.LowerOperation(DAG.getNode(ISD::BIT_CONVERT, VT, Tmp), DAG);
|
||||
}
|
||||
|
||||
MVT::ValueType NVT = Node->getValueType(0);
|
||||
// f32 / f64 must be expanded to i32 / i64.
|
||||
if (NVT == MVT::f32 || NVT == MVT::f64) {
|
||||
Lo = DAG.getNode(ISD::BIT_CONVERT, TLI.getTypeToTransformTo(NVT),
|
||||
Node->getOperand(0));
|
||||
Hi = DAG.getConstant(0, TLI.getTypeToTransformTo(NVT));
|
||||
if (VT == MVT::f32 || VT == MVT::f64) {
|
||||
Lo = DAG.getNode(ISD::BIT_CONVERT, NVT, Node->getOperand(0));
|
||||
Hi = DAG.getConstant(0, NVT);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user