JuliaLang/julia

Granular `@fastmath` flags

Offen

#49.890 geöffnet am 19.05.2023

 (3 Kommentare) (6 Reaktionen) (0 zugewiesene Personen)Julia (5.773 Forks)batch import
featuregood first issuehelp wanted

Repository-Metriken

Stars
 (48.709 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

@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