rust-reduce
rust-reduce copied to clipboard
Apply passes multiple times
Clearing a function body for example may make other functions dead code.
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.
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.