This is an archive of the discontinued LLVM Phabricator instance.

[mlir][arith] Convert fastmath to LLVM dialect for some arith ops.
ClosedPublic

Authored by vzakhari on Nov 4 2022, 12:16 PM.

Details

Summary

This is a follow-up on D126305 and D136225.
We can now preserve fastmath for arith::MaxFOp,MinFOp,RemFOp during
ArithToLLVM conversion.

Diff Detail

Event Timeline

vzakhari created this revision.Nov 4 2022, 12:16 PM
vzakhari requested review of this revision.Nov 4 2022, 12:16 PM
rriddle accepted this revision.Nov 7 2022, 6:44 PM
rriddle added inline comments.
mlir/test/Conversion/ArithToLLVM/arith-to-llvm.mlir
473

I know the others have it, but can we drop the leading {{.*}} = ? I don't think it adds anything to these tests.

This revision is now accepted and ready to land.Nov 7 2022, 6:44 PM
vzakhari updated this revision to Diff 473862.Nov 7 2022, 7:55 PM

Thank you for the review, River! I changed the test.

This revision was landed with ongoing or failed builds.Nov 7 2022, 7:57 PM
This revision was automatically updated to reflect the committed changes.