Closed
Description
There should be a way to use imprecise floating point operations like GCC's and Clang's -ffast-math
. The simplest way to do this would be to do like GCC and Clang and implement a command line flag, but I think a better way to do this would be to create a f32fast
and f64fast
type that would then call the fast LLVM math functions. This way you can easily mix fast and "slow" floating point operations.
I think this could be implemented as a library if LLVM assembly could be used in the asm
macro.
Metadata
Metadata
Assignees
Labels
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Floating point numbers and arithmeticCategory: An issue proposing an enhancement or a PR with one.Category: A feature request, i.e: not implemented / a PR.Issue: Problems and improvements with respect to performance of generated code.Relevant to the language team, which will review and decide on the PR/issue.