Skip to content

Some form of compile time branch elimination #402

Open
@dadhi

Description

@dadhi

Sometimes when composing the final expression, the parts are the Lambdas and Invocations (e.g. AutoMapper does this a lot).
The more generic lambda may take the null constant or default expression as invocation of a special kind.
After inlining the Invocation contains the conditions Test like Constant(null) == Default(typeof(X)) or similar.
Knowing that we may eliminate the false branch during Collect and Emit phase, and substitute the whole condition with the true branch body.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions