[llvm] [NVPTX] Support lowering of `(l)lround` (PR #183901)

Balaji Krishna Yugandhar Atukuri via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 9 09:16:55 PDT 2026


================
@@ -3468,6 +3484,9 @@ NVPTXTargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) const {
     return lowerSELECT(Op, DAG);
   case ISD::FROUND:
     return LowerFROUND(Op, DAG);
+  case ISD::LROUND:
+  case ISD::LLROUND:
+    return LowerLROUND(Op, DAG);
----------------
balaji-krishna-atukuri wrote:

Suspect, this call is not required. Could you please check if the code at https://github.com/llvm/llvm-project/blob/main/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp#L4857 already handles this case? 

https://github.com/llvm/llvm-project/pull/183901


More information about the llvm-commits mailing list