1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[X86] Use SelectionDAG::getZExtOrTrunc to simplify some code. NFCI

This commit is contained in:
Craig Topper 2020-01-28 16:13:51 -08:00
parent 4e605f5fdf
commit 3b91c078ed

View File

@ -25475,8 +25475,7 @@ SDValue X86TargetLowering::LowerFLT_ROUNDS_(SDValue Op,
DAG.getConstant(1, DL, MVT::i16)),
DAG.getConstant(3, DL, MVT::i16));
return DAG.getNode((VT.getSizeInBits() < 16 ?
ISD::TRUNCATE : ISD::ZERO_EXTEND), DL, VT, RetVal);
return DAG.getZExtOrTrunc(RetVal, DL, VT);
}
// Split an unary integer op into 2 half sized ops.