#Why is the attribute with mode @(optimization_mode="speed") no longer available?

1 messages · Page 1 of 1 (latest)

fiery acorn
#

It looks like the only modes that are available are none and favor_size

Error: Invalid optimization_mode for 'optimization_mode'. Valid modes:
        @(require_results, optimization_mode = "whatever") 
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 
        none 
        favor_size

this is just an example to show available values. when i try running with speed i get this error:
Error: Invalid optimization_mode 'speed' for 'optimization_mode', mode has been removed due to confusion, but 'favor_size' has the same behaviour

can someone explain this?

heavy crown
#

I think there are some strange interactions with llvm

#

Afaik if you didn't compile with optimisations on the flag would effectively be ignored

#

Since the llvm passes are disabled

heavy crown
#

Just to clarify what I said, if you compile with -o:none/minimal the optimization mode 'speed' tag was effectively ignored

#

The tag only worked when you compiled with -o:speed making the tag a bit redundant

#

Since you're already compiling for speed

rugged robin