[all-commits] [llvm/llvm-project] 37f9ee: [RISCV] Allow conversion of fp divisions to fp mul...
Anton Sidorenko via All-commits
all-commits at lists.llvm.org
Thu Dec 15 02:02:06 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 37f9eec14298731b0e2ca724c101478994df4243
https://github.com/llvm/llvm-project/commit/37f9eec14298731b0e2ca724c101478994df4243
Author: Anton Sidorenko <anton.sidorenko at syntacore.com>
Date: 2022-12-15 (Thu, 15 Dec 2022)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/lib/Target/RISCV/RISCVISelLowering.h
M llvm/test/CodeGen/RISCV/repeated-fp-divisors.ll
Log Message:
-----------
[RISCV] Allow conversion of fp divisions to fp multiplications by the reciprocal
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.
Differential Revision: https://reviews.llvm.org/D140024
More information about the All-commits
mailing list