================
@@ -7022,9 +7045,16 @@ mlir::Value IntrinsicLibrary::genMod(mlir::Type
resultType,
if (mlir::isa<mlir::IntegerType>(resultType))
return mlir::arith::RemSIOp::create(builder, loc, args[0], args[1]);
- // Use runtime.
- return builder.createConvert(
- loc, resultType, fir::runtime::genMod(builder, loc, args[0], args[1]));
+ if (useFastRealMod && resultType.isFloat()) {
----------------
vzakhari wrote:
I wonder if we can enable the fast MOD under `afn` FastMathFlag. Is there a
reason to control it via a separate option?
https://github.com/llvm/llvm-project/pull/160660
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits