poor codegen for abs(), and div by literal?

kinke noone at nowhere.com
Sat Feb 9 15:55:48 UTC 2019


On Saturday, 9 February 2019 at 15:14:47 UTC, NaN wrote:
> What flags are you passing LDC? I cant get it to convert the 
> division into a multiply by it's inverse unless i specifically 
> change /3.142f to /(1.0f/3.142f).

Use `-ffast-math`. If you need more fine-grained control (e.g., 
`enable-unsafe-fp-math`), dare invoking `ldc2 --help-hidden`.


More information about the Digitalmars-d mailing list