drunk teapot
drunk teapot

Reputation: 325

what code optimizations can roslyn provide

I've started playing with Roslyn's syntax & semantic APIs. Haven't really digged hard yet but, is there any code optimization provided by semantic API like:

dead code elimination, hoisting or some sort of pointer analysis? or other analyses?

I'm aware that roslyn provides methods for DFA and CFA but anything coming as a bonus to that?

Upvotes: 4

Views: 734

Answers (1)

Kevin Pilch
Kevin Pilch

Reputation: 11615

There is nothing built in to the API, but it is possible to build you own features like this using the APIs. I know of some people who have had success using Roslyn to identify and remove dead code for example.

Upvotes: 3

Related Questions