JuliaLang/julia

Granular `@fastmath` flags

Open

#49,890 opened on May 19, 2023

View on GitHub
 (3 comments) (6 reactions) (0 assignees)Julia (5,773 forks)batch import
featuregood first issuehelp wanted

Repository metrics

Stars
 (48,709 stars)
PR merge metrics
 (Avg merge 20d 6h) (157 merged PRs in 30d)

Description

@fastmath is currently an all-or-nothing construct: one opts into every available flag (which is subject to change with new LLVM versions) by using this macro. There is no syntax to invoke a specific subset of the available flags.

A syntax for opt-in flags like @fastmath (;reassoc=true,contract=true,nsz=true) EXPR would be welcome for a more controlled @fastmath experience.

Contributor guide