diff --git a/mlir/lib/Conversion/GPUToNVVM/LowerGpuOpsToNVVMOps.cpp b/mlir/lib/Conversion/GPUToNVVM/LowerGpuOpsToNVVMOps.cpp --- a/mlir/lib/Conversion/GPUToNVVM/LowerGpuOpsToNVVMOps.cpp +++ b/mlir/lib/Conversion/GPUToNVVM/LowerGpuOpsToNVVMOps.cpp @@ -138,7 +138,7 @@ target.addIllegalDialect(); target.addIllegalOp(); + LLVM::Log2Op, LLVM::SinOp, LLVM::SqrtOp>(); target.addIllegalOp(); target.addLegalDialect(); // TODO: Remove once we support replacing non-root ops. @@ -187,6 +187,8 @@ "__nv_rsqrt"); patterns.insert>(converter, "__nv_sinf", "__nv_sin"); + patterns.insert>(converter, "__nv_sqrtf", + "__nv_sqrt"); patterns.insert>(converter, "__nv_tanhf", "__nv_tanh"); }