DistIL
v0.11.1-preview
Post-build IL optimizer and intermediate representation for .NET programs (experimental).
See Optimization Passes for a detailed list of optimizations passes available.
Preview versions of the optimizer can be used by installing the DistIL.OptimizerTask NuGet package. It contains a MSBuild task which will automatically invoke the optimizer on the output project assembly when building in Release mode.
By default, only methods and classes annotated with [Optimize] will be transformed, in order to reduce the chances of things breaking unexpectedly. This can be changed by setting the DistilAllMethods project property to true.