This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Math] Add constant folder for RoundOp.
ClosedPublic

Authored by jacquesguan on Sep 6 2022, 11:30 PM.

Details

Summary

This patch uses round/roundf of libm to fold RoundOp of constant.

Diff Detail

Event Timeline

jacquesguan created this revision.Sep 6 2022, 11:30 PM
jacquesguan requested review of this revision.Sep 6 2022, 11:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 6 2022, 11:30 PM
Mogball accepted this revision.Sep 7 2022, 8:40 AM
This revision is now accepted and ready to land.Sep 7 2022, 8:40 AM

can you check the windows build? Or did you need to rebase this patch

rebase main

can you check the windows build? Or did you need to rebase this patch

Done.

This revision was automatically updated to reflect the committed changes.