JuliaLang/julia

Granular `@fastmath` flags

Open

#49.890 geöffnet am 19. Mai 2023

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

Repository-Metriken

Stars
 (48.709 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 20T 6h) (157 gemergte PRs in 30 T)

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