This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Allow conversion of fp divisions to fp multiplications by the reciprocal
ClosedPublic

Authored by asi-sc on Dec 14 2022, 6:30 AM.

Details

Summary

If the divisor is repeated at least twice, we will convert the FDIVs to the
calculation of the reciprocal and FMULs.

We perform the transformation only under fast-math mode. FDIVs must have
'arcp' flag.

Diff Detail

Event Timeline

asi-sc created this revision.Dec 14 2022, 6:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 14 2022, 6:30 AM
asi-sc requested review of this revision.Dec 14 2022, 6:30 AM
This revision is now accepted and ready to land.Dec 14 2022, 10:17 AM
This revision was landed with ongoing or failed builds.Dec 15 2022, 2:02 AM
This revision was automatically updated to reflect the committed changes.