This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Arithmetic] Fold NegF in MulF and DivF.
ClosedPublic

Authored by jacquesguan on May 19 2022, 11:49 PM.

Details

Summary

This patch adds the following combination:

mulf(negf(x), negf(y)) -> mulf(x, y)
divf(negf(x), negf(y)) -> divf(x, y)

Diff Detail

Event Timeline

jacquesguan created this revision.May 19 2022, 11:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2022, 11:49 PM
jacquesguan requested review of this revision.May 19 2022, 11:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2022, 11:49 PM
rriddle accepted this revision.Jun 11 2022, 1:06 AM
This revision is now accepted and ready to land.Jun 11 2022, 1:06 AM
This revision was automatically updated to reflect the committed changes.