Skip to content

Optimize arithmetic identity operations away #243

@sabastiaan

Description

@sabastiaan

For mov rax, [rax], 48 8b 00 it generates the following sub trees under read_constraint.

Mul 0, op2 can have their entire subtree removed
A add 0, op2 can have op2 be propegated to where the add node was

image
image

Metadata

Metadata

Assignees

Labels

optimizationsRelated to circIR optimizationswipCurrently being worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions