Does Mojo support fast-math flags?

Does Mojo allow for enabling flags from the fast-math group? https://llvm.org/docs/LangRef.html#fast-math-flags
4 Replies
shib
shib13mo ago
Control of these flags isn't exposed at the moment. FP_CONTRACT is enabled by default
Alex Droste
Alex DrosteOP13mo ago
Thanks for clarifying! Is there more work planned on that end, enabling more flags by default in Mojo or allowing users to explicitly set those flags?
ModularBot
ModularBot13mo ago
Congrats @Alex Droste, you just advanced to level 1!
Alex Droste
Alex DrosteOP13mo ago
E.g. -fno-signed-zeros brings a 20% speedup in our DSP kernel as of now.

Did you find this page helpful?