[m-users.] Best way to implement constants ?

Zoltan Somogyi zoltan.somogyi at runbox.com
Fri Aug 18 21:15:32 AEST 2023


On 2023-08-18 13:10 +02:00 CEST, "Julien Fischer" <jfischer at opturion.com> wrote:
>> We can enable constant propagation at -O2, but there is no point
>> in doing so selectively. The main cost of that optimization
>> is the lookup of the predicate in const_prop.m's implicit database;
>> once you paid that cost, there is no point in accepting the optimization
>> of calls to some predicates/functions but rejecting the optimization of calls
>> to other predicates/functions.
> 
> In which case, I suggest we enable const prop at -O2.
> This means that it is done by default (usually).

Done.

Zoltan.


More information about the users mailing list