Skip to content

Basic conditional optimisations #4

@c272

Description

@c272

We can perform incredibly basic boolean expression optimisations on conditional expressions (e.g. removing things like NOT NOT). This should improve code size and performance for evaluating branch conditions.

There are also code generation time optimisations that can be made here, as Cranelift has support for combined operations such as bor_not which can represent a NOT X OR Y and band_not which can represent a NOT X AND Y.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions