Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offer -ffast-math option(s) #722

Closed
Trass3r opened this issue Sep 22, 2014 · 4 comments
Closed

Offer -ffast-math option(s) #722

Trass3r opened this issue Sep 22, 2014 · 4 comments

Comments

@Trass3r
Copy link
Contributor

Trass3r commented Sep 22, 2014

Important for auto-vectorization for example.

@dnadlinger
Copy link
Member

Just a note, this was discussed in some detail on the mailing list already (IIRC John Colvin brought it up a few weeks/months ago). The main thing that is needed is a decision on a sane command line interface (GCC's is a mess for historic reasons, IIRC). The actual implementation should be trivial (just set the necessary target options).

@Trass3r
Copy link
Contributor Author

Trass3r commented Sep 23, 2014

clang's interface is a bit more differentiated I think.
The implementation isn't that trivial cause the flags are reset inside llvm based on function attributes set by clang and caused problems last time I tried it IIRC.

redstar pushed a commit that referenced this issue Sep 27, 2014
Fix Issue 12136 - [AA] Associative array `keys` and `values` become non-properties.
@redstar
Copy link
Member

redstar commented Nov 13, 2014

See pull request #789. This does not solve the decision about a sane command lline interface...

redstar added a commit to redstar/ldc that referenced this issue Nov 13, 2014
New options are: -enable-fp-mad, -enable-unsafe-fp-math, -enable-no-infs-fp-math,
-enable-no-nans-fp-math and -enable-sign-dependent-rounding-fp-math.

This fixes issue ldc-developers#722. It does not solve the question about good command line interfacing.
@kinke
Copy link
Member

kinke commented Oct 22, 2017

LDC 1.5 uses the default LLVM codegen options, among which there are -fp-contract, -enable-unsafe-fp-math, -enable-fp-mad, -enable-no-infs-fp-math, -enable-no-nans-fp-math, -enable-no-trapping-fp-math, -denormal-fp-math, -recip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants