Unverified Commit 22544e2a authored by Alex Bradbury's avatar Alex Bradbury Committed by GitHub
Browse files

[flang] Set fast math related function attributes for -Ofast/-ffast-math (#79301)

The implemented logic matches the logic used for Clang in emitting these
attributes. Although it's hoped that function attributes won't be needed
in the future (vs using fast math flags in individual IR instructions),
there are codegen differences currently with/without these attributes,
as can be seen in issues like #79257 or by hacking Clang to avoid
producing these attributes and observing codegen changes.
parent 64a317ad
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment