Skip to content

Commit 212a3fa

Browse files
committed
Post-rebase update
1 parent ec9ce86 commit 212a3fa

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

llvm/lib/Target/ARM/ARMISelLowering.cpp

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,8 +1372,7 @@ ARMTargetLowering::ARMTargetLowering(const TargetMachine &TM_,
13721372

13731373
// Round-to-integer need custom lowering for fp16, as Promote doesn't work
13741374
// because the result type is integer.
1375-
for (auto Op : {ISD::LROUND, ISD::LLROUND, ISD::LLRINT, ISD::STRICT_LROUND,
1376-
ISD::STRICT_LLROUND, ISD::STRICT_LRINT, ISD::STRICT_LLRINT})
1375+
for (auto Op : {ISD::STRICT_LROUND, ISD::STRICT_LLROUND, ISD::STRICT_LRINT, ISD::STRICT_LLRINT})
13771376
setOperationAction(Op, MVT::f16, Custom);
13781377

13791378
for (auto Op : {ISD::FROUND, ISD::FROUNDEVEN, ISD::FTRUNC,
@@ -10751,17 +10750,6 @@ SDValue ARMTargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) const {
1075110750
return LowerCMP(Op, DAG);
1075210751
case ISD::ABS:
1075310752
return LowerABS(Op, DAG);
10754-
case ISD::LRINT:
10755-
case ISD::LLRINT:
10756-
case ISD::LROUND:
10757-
case ISD::LLROUND: {
10758-
assert((Op.getOperand(0).getValueType() == MVT::f16 ||
10759-
Op.getOperand(1).getValueType() == MVT::bf16) &&
10760-
"Expected custom lowering of rounding operations only for f16");
10761-
SDLoc DL(Op);
10762-
SDValue Ext = DAG.getNode(ISD::FP_EXTEND, DL, MVT::f32, Op.getOperand(0));
10763-
return DAG.getNode(Op.getOpcode(), DL, Op.getValueType(), Ext);
10764-
}
1076510753
case ISD::STRICT_LROUND:
1076610754
case ISD::STRICT_LLROUND:
1076710755
case ISD::STRICT_LRINT:

0 commit comments

Comments
 (0)