IntersectMBO / plutus

The Plutus language implementation and tools
Apache License 2.0
1.56k stars 480 forks source link

Redesign Plutus Tx compiler optimization flags #5983

Open zliu41 opened 4 months ago

zliu41 commented 4 months ago

Currently there are a number of flags that control optimizations, one of which is conservative-optimization. There are several problems with this:

We should design optimization flags such that:

We can borrow some ideas from GHC or GCC. In GCC, there are flags for optimization levels (O0, O1, O2, O3) and optimization goals (Os, Oz etc.) and it’s a good idea to use similar or the same flag names whenever possible.

A/C: come up with a design of optimization flags.

Extricated from https://input-output.atlassian.net/browse/PLT-9720

zliu41 commented 4 months ago

Yuriy Lazaryev April 18, 2024 at 2:21 PM

I wrote my considerations on the matter in the google doc.