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.
Paths
| Differential D140024
[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 We perform the transformation only under fast-math mode. FDIVs must have
Diff Detail
Event TimelineThis 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 Closed by commit rG37f9eec14298: [RISCV] Allow conversion of fp divisions to fp multiplications by the reciprocal (authored by asi-sc). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 483096 llvm/lib/Target/RISCV/RISCVISelLowering.h
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/repeated-fp-divisors.ll
|