rust-reduce icon indicating copy to clipboard operation
rust-reduce copied to clipboard

Apply passes multiple times

Open bjorn3 opened this issue 5 years ago • 2 comments

Clearing a function body for example may make other functions dead code.

bjorn3 avatar Jun 22 '20 12:06 bjorn3

I would but I don't know when to stop. I'm not sure it's guaranteed that we won't see a bistable convergence, especially as more passes are added in the future.

jethrogb avatar Jun 22 '20 13:06 jethrogb

Maybe require that output of the latest pass has strictly less bytes/tokens than the output of the previous pass? That would guarantee that it stops, as eventually you are left with an empty file if every pass keeps shrinking the input.

bjorn3 avatar Jun 22 '20 13:06 bjorn3