|
|
|
|
|
by pedrocr
2424 days ago
|
|
It doesn't exist yet and it's not clear it should be replicated as is. The fast-math flag does a bunch of related things that should probably be exposed separately so it's not a footgun in several situations. I'm also partial to exposing it per-function so the control is actually in the hands of the people writing the code that know the context and not subject to someone fiddling with compiler flags and getting incorrect code. For this example you'd probably want -fassociative-math and not the other stuff that may result in incorrect code. -ffast-math was not actually used in the clang compilation and it's possible that the -fvectorize that was used picks a sensible mix of options. Here's a preliminary discussion: https://internals.rust-lang.org/t/pre-rfc-whats-the-best-way... Trying to do an RFC process for this could be useful. The rust development process seems to be pretty good at thinking deeply about these things. |
|
As a C++ programmer who routinely uses fast-math "until something breaks" with DSP code, I would find that capability very attractive.