[llvm] [SelectionDAG] Add `f16` soft promotion for `lrint` and `lround` (PR #152684)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 11 20:06:49 PDT 2025
================
@@ -3811,7 +3820,7 @@ SDValue DAGTypeLegalizer::SoftPromoteHalfOp_FP_EXTEND(SDNode *N) {
return DAG.getNode(GetPromotionOpcode(SVT, RVT), SDLoc(N), RVT, Op);
}
-SDValue DAGTypeLegalizer::SoftPromoteHalfOp_FP_TO_XINT(SDNode *N) {
+SDValue DAGTypeLegalizer::SoftPromoteHalfOp_UnaryOp(SDNode *N) {
----------------
arsenm wrote:
I wouldn't name this UnaryOp - that implies it's an FP-to-FP same type operation which this is not
https://github.com/llvm/llvm-project/pull/152684
More information about the llvm-commits
mailing list