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:
parent
4e605f5fdf
commit
3b91c078ed
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user