Re: [m-users.] Best way to implement constants ?
"Zoltan Somogyi" <[email protected]>
| Newsgroups | gmane.comp.lang.mercury.general |
|---|---|
| Message-ID | <[email protected]> |
On 2023-08-18 13:10 +02:00 CEST, "Julien Fischer" <[email protected]> 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. _______________________________________________ users mailing list [email protected] https://lists.mercurylang.org/listinfo/users